import{c_ as n}from"./index-d6499a22.js";const a=n({String:"string",Integer:"integer",Float:"number",Boolean:"boolean","Array of Float":"array","Array of Integer":"array","Array of String":"array","Array of Boolean":"array"}),u=o=>o.reduce((e,{name:r,description:t,required:i,type:s})=>{if(r==="")return e;const p=s[0];if(p.includes("Array")){const y=p.slice(p.lastIndexOf(" ")+1);e.properties[r]={description:t,type:"array",items:{type:a.getByKey(y)}}}else e.properties[r]={type:a.getByKey(p),...t?{description:t}:{description:""}};return i&&e.required.push(r),e},{properties:{},required:[]}),f=o=>Object.entries(o.properties).map(([e,{description:r,type:t}])=>({name:e,type:[a.getByValue(t)],required:o.required.includes(e),description:r??""}));export{f as a,u as m,a as p};
