Expand description
Thread-local context for common settings for documentation generation.
Structs§
- A context for API document generation that provides settings and a
SchemaGenerator
.
Functions§
- Output all theoretically possible error responses including framework-specific ones.
- Collect common schemas in the thread-local context, then store them under
#/components/schemas
the next time generated content is merged intoOpenApi
. This feature is enabled by default. - Access the current thread-local context for API documentation generation.
- Infer responses based on request handler return types.
- Set the inferred status code of empty responses (
()
). - Register an error handler in the current thread-local context.
- Reset the state of the thread-local context.