import{isOperationName,JsonPointer}from"../utils";import{getOperation}from"./operation";import{joinWithSeparator}from"../services";export function getCallback(e,t,r,o,a,s,i,n){const{resolved:p}=e.deref(r),c=[];for(const r of Object.keys(p)){const m=p[r],f=Object.keys(m).filter(isOperationName);for(const p of f){const f=m[p],l=getOperation(e,Object.assign(Object.assign({},f),{pathName:r,pointer:JsonPointer.join(o,["callbacks",t,p]),httpVerb:p,pathParameters:m.parameters||[],pathServers:m.servers}),i,a,s,{isCallback:!0,id:joinWithSeparator(t,p)},n);c.push(l)}}return{name:t,operations:c}}
//# sourceMappingURL=callback.js.map