Skip to main content

Module openapi

Module openapi 

Source
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§

OpenApiError
A manifest whose docs cannot form a spec.

Enums§

PathStyle
Where a spec’s paths are rooted.
PublicDocError
Why a public document cannot be built.

Functions§

default_style
Server-relative once the service documents itself (openapi options or any route doc), 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 name of manifest.
public_doc_spec
The public document name: the operations of the service’s server-relative spec tagged with any of its include_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.