publier.openapi.generate
The publier.openapi.generate module.
Overview
Interfaces
Functions
generateFiles
function generateFiles(options: GenerateFilesOptions): string[]
Generates individual MDX files from an OpenAPI spec.
Each endpoint becomes a standalone MDX page with:
- Frontmatter (title, description, method, path, tags)
- Exported
operationconst with the full operation data <APIReference>component rendering the endpoint
Parameters
| Name | Type |
|---|---|
options | GenerateFilesOptions |