Skip to main content

generate_openapi

Function generate_openapi 

Source
pub fn generate_openapi(
    rest_blocks: &[RouteDslRest],
    title: &str,
    version: &str,
) -> OpenApiGenerationResult
Expand description

Generate an OpenAPI 3.0.3 document from parsed rest: AST blocks.

Each operation maps to a paths.<full_path>.<verb> entry. Missing schemas produce weak stubs (type: object) and a warning.