UNPKG

fumadocs-openapi

Version:

Generate MDX docs for your OpenAPI spec

22 lines (21 loc) 476 B
//#region src/utils/pages/to-body.tsx function toBody(entry) { if (entry.type === "operation") return { document: entry.schemaId, operations: [entry.item] }; if (entry.type === "webhook") return { document: entry.schemaId, webhooks: [entry.item] }; return { showTitle: true, showDescription: true, document: entry.schemaId, operations: entry.operations, webhooks: entry.webhooks }; } //#endregion export { toBody }; //# sourceMappingURL=to-body.js.map