import{entityBaseProperties as p,entityFileSchema as o}from"@redocly/config";function n(t){const i=Object.entries(t.entityTypes??{}).map(([e,r])=>({type:"object",properties:{...p,type:{const:e},metadata:{additionalProperties:!0,...r.metadataSchema},revision:{type:"string"}},required:["key","title","type"],additionalProperties:!1}));return{type:"object",discriminator:{propertyName:"type"},oneOf:[...o.oneOf.map(e=>({...e,properties:{...e.properties}})),...i]}}export{n as createEntitySchema};
