"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getCallback=getCallback;const utils_1=require("../utils"),operation_1=require("./operation"),services_1=require("../services");function getCallback(e,t,r,s,o,a,i,n){const{resolved:c}=e.deref(r),l=[];for(const r of Object.keys(c)){const p=c[r],u=Object.keys(p).filter(utils_1.isOperationName);for(const c of u){const u=p[c],b=(0,operation_1.getOperation)(e,Object.assign(Object.assign({},u),{pathName:r,pointer:utils_1.JsonPointer.join(s,["callbacks",t,c]),httpVerb:c,pathParameters:p.parameters||[],pathServers:p.servers}),i,o,a,{isCallback:!0,id:(0,services_1.joinWithSeparator)(t,c)},n);l.push(b)}}return{name:t,operations:l}}
//# sourceMappingURL=callback.js.map