Skip to main content

openapi_document

Function openapi_document 

Source
pub fn openapi_document() -> Value
Expand description

Builds the service’s OpenAPI 3.1 document from every facade linked into the binary, discovered through seiva::contract::registered_facades (each #[seiva::facade] registers itself in a link-time inventory). Nothing here is hand-written and no central list is kept: a module mounted into the runtime contributes its operations automatically (OWASP API9). This crate links no facade of its own, so a plain seiva-http binary documents nothing; the full runtime (see seiva-server) documents every mounted module.