Expand description
OpenAPI spec generation from a ServiceManifest.
This module is used by both the platform (server-side) and the CLI (local generation without deployment).
Structs§
- Open
ApiError - A manifest whose docs cannot form a spec.
Enums§
- Path
Style - Where a spec’s paths are rooted.
- Public
DocError - Why a public document cannot be built.
Functions§
- default_
style - Server-relative once the service documents itself (
openapioptions or any routedoc), absolute otherwise. - generate_
openapi - The service’s OpenAPI 3.1 document.
- mount_
segments - The literal segments of a document’s mount.
- public_
doc - The public document
nameofmanifest. - public_
doc_ spec - The public document
name: the operations of the service’s server-relative spec tagged with any of itsinclude_tags, the schemas and security schemes they reach, and the document’s own info, servers and tags. - service_
spec - The spec a deployed or local service is served with: in its
default_style. - validate
- Check a documented manifest: its spec as [
spec] does, and its public documents. An undocumented manifest passes: its spec is today’s.