Skip to main content

Module openapi

Module openapi 

Source
Available on crate feature openapi only.
Expand description

OpenAPI 3.0 document builder (requires openapi feature).

Builds a spec from SchemaRegistry including components.schemas, request bodies, response content, and parameters.

Structs§

OpenApiBuilder
Builds an OpenAPI 3.0 document from a SchemaRegistry.
OpenApiComponents
Reusable schemas (components.schemas).
OpenApiDocument
OpenAPI 3.0 document.
OpenApiInfo
API metadata (info).
OpenApiMediaType
Media type entry (content.application/json).
OpenApiOperation
Path operation (get, post, …).
OpenApiParameter
Path or query parameter.
OpenApiRequestBody
Request body with JSON content.
OpenApiResponse
Single HTTP response.
OpenApiResponses
Operation responses map.
OpenApiServer
Server URL (servers[]).

Enums§

OpenApiSchemaRef
JSON Schema reference or inline schema.