import{getContentWithLegacyExamples as f,getValueFromMdParsedExtension as m,JsonPointer as p}from"../utils/index.js";import{getMediaContent as q}from"./mediaContent.js";function y({parser:t,infoOrRef:n,options:s,isEvent:d,operation:o}){const{resolved:e}=t.deref(n),u=m(e,"description")||"",c=e.required;let i;const a=!d,r=f(e);return r!==void 0&&(i=q({parser:t,info:r,isRequestType:a,options:s,data:{operation:o,type:"request",absolutePointer:n.$ref||p.join(o.pointer,["requestBody"])}})),{description:u,required:c,content:i}}export{y as getRequestBody};
