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