Skip to main content

Crate sova_openapi

Crate sova_openapi 

Source
Expand description

OpenAPI 3.1 document building and Scalar docs UI.

Does not depend on vld — schemas are plain serde_json::Value.

Structs§

BuildOptions
Doc
Per-route OpenAPI annotations stored in route meta.
OpenApi
Serves Scalar UI and OpenAPI JSON from the compiled RouteTable.
OpenApiValidate
Neutral request schemas for OpenAPI (filled by ValidateRouteExt).

Traits§

OpenApiDocExt
Attach Doc metadata to the last registered HTTP route.

Functions§

build_document
Build an OpenAPI 3.1 document from a RouteTable.
undocumented
Routes that lack a Doc / OpenApiValidate (and are not skip / under docs).
undocumented_from_table
Same as undocumented, using a compiled RouteTable (e.g. from check state).
validation_error_schema
Fixed validation error body schema (auto-422).