Module aide::gen

source ·
Expand description

Thread-local context for common settings for documentation generation.

Structs§

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 into OpenApi. 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.