Skip to content
duxt

Components

The three MDC components a generated reference page is made of.

The openapi type writes ordinary Markdown pages whose bodies are three MDC components. They are documented because they are part of the public surface — a consumer can override any of them — not because a page has to be written by hand.

OpenApiOverview

The document's front page: info, the servers, the security schemes, and the list of tags with a count each.

PropTypeNotes
infoobjecttitle, version, summary, contact
serversarrayEvery server the document declares
securityobjectThe document's own requirement
schemesarrayThe security schemes, by name
tagsarrayEach with a to, a description, a count

OpenApiOperations

A tag's index: every operation under it as a row, with its method, path, summary and whether it is deprecated.

PropTypeNotes
operationsarrayMethod, path, kind, summary, to
externalDocsobjectThe tag's own link, where it has one

OpenApiOperation

One endpoint: parameters, request body, responses, callbacks, and the try-it client.

PropTypeNotes
operationobjectThe compacted operation
serversarrayResolved for this operation
securityobjectThe operation's own requirement, or absent
securitySchemesarrayThe schemes those requirements name

Overriding one

Same as any other component the layer ships: a file at the same path in the consuming site wins.

app/components/content/OpenApiOperation.vue

The props above are the contract. A rename here is a breaking change of the layer.

No heading of its own

None of the three opens on an <h1>. The docs shell draws the header — breadcrumb, title, the copy control beside it — for every generated page whose body opens on no heading, and a reference page wants exactly that: a title and a trail like any written page.

Was this page helpful?