Crate utoipa_gen

source ·
Expand description

This is private utoipa codegen library and is not used alone.

The library contains macro implementations for utoipa library. Content of the library documentation is available through utoipa library itself. Consider browsing via the utoipa crate so all links will work correctly.

Attribute Macros

Path attribute macro implements OpenAPI path for the decorated function.

Derive Macros

Generate path parameters from struct’s fields.
Generate responses with status codes what can be attached to the utoipa::path.
Generate OpenApi base object with defaults from project settings.
Generate reusable OpenAPI response what can be used in utoipa::path or in OpenApi.
Generate reusable OpenAPI schema to be used together with OpenApi.