Skip to main content

generate_schemas

Function generate_schemas 

Source
pub fn generate_schemas(openapi: &OpenAPI) -> TokenStream
Expand description

Generate all schema structs and enums from components/schemas.

Any inline oneOf / allOf / anyOf encountered inside an object property is hoisted to a synthesized top-level type and emitted alongside the named schemas, so the resulting module is self-contained.