import{joinWithSeparator}from"../services";import{getValueFromMdParsedExtension,safeSlugify}from"../utils";import{getHref}from"../services/menu/operation";import{saveTextBeforeHeading}from"../utils/saveTextBeforeHeading";export function getTagOrGroup(e,i,t){let r;r=(null==t?void 0:t.id)&&"schema"===e?joinWithSeparator(t.id,safeSlugify(i.name)):i.id||safeSlugify(i.name);const a=i["x-displayName"]||i.name,o=i.level||1,s=i.isSchema,n=i.ast||void 0,m=saveTextBeforeHeading(getValueFromMdParsedExtension(i,"description")||""),d=i.items||[],f=i.externalDocs;return{id:r.toLowerCase(),type:e,parent:t,name:a,level:o,depth:0,isSchema:s,description:m,items:d,ast:n,externalDocs:f,href:getHref({id:r})}}
//# sourceMappingURL=group.js.map