import{cA as y,f as l,cB as m,g as u,as as g,bE as f,b8 as b,U as c}from"./index-CK33qGU_.js";import{c as d}from"./complement-M2aUPqXA.js";const o=y({String:"string",Integer:"integer",Float:"number",Boolean:"boolean","Array of Float":"arraynumber","Array of Integer":"arrayinteger","Array of String":"arraystring","Array of Boolean":"arrayboolean"}),q=s=>s.reduce((e,{name:r,description:t,required:a,type:i})=>{if(r==="")return e;const p=i[0];if(p.includes("Array")){const n=p.slice(p.lastIndexOf(" ")+1);e.properties[r]={description:t,type:"array",items:{type:o.getByKey(n)}}}else e.properties[r]={type:o.getByKey(p),...t?{description:t}:{description:""}};return a&&e.required.push(r),e},{properties:{},required:[]}),j=s=>Object.entries(s.properties).map(([e,{description:r,type:t,items:a}])=>({name:e,type:[o.getByValue(t+(a?a.type:""))],required:s.required.includes(e),description:r??""})),x=l(c("properties"),b,g(f(["type","description","items"])),m(d(u)));export{q as a,x as j,j as m,o as p};
