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