import{getMediaType}from"./mediaType";export function getMediaContent({parser:e,info:t,isRequestType:p,options:o,data:{operation:i,type:a,response:n,absolutePointer:s=""}}){const r=Object.keys(t).map((r=>getMediaType(e,r,p,t[r],o,{operation:i,type:a,response:n,absolutePointer:s}))),m=r.filter((e=>!!e.examples||!!e.formExamples)).length>0;return{mediaTypes:r,isRequestType:p,hasSample:m,operation:i}}export function getActiveMediaType(e,t){return t&&e.mediaTypes.find((e=>e.name===t))||e.mediaTypes[0]||{}}
//# sourceMappingURL=mediaContent.js.map