Skip to main content

openapi_spec

Function openapi_spec 

Source
pub fn openapi_spec() -> Value
Expand description

Builds the full OpenAPI 3.1.0 document for the rest module.

Deterministic: every object in the returned serde_json::Value is built through json::obj, so serde_json::to_string_pretty(&openapi_spec()) is byte-identical run to run and build to build - see the module docs’ “Determinism” section. tests::openapi_spec_matches_checked_in_file pins that output against the checked-in openapi.json.