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.
Macros§
- Create OpenAPI Schema from arbitrary type.
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 that can be used in
utoipa::path
or inOpenApi
. - Generate reusable OpenAPI schema to be used together with
OpenApi
.