Function aide::gen::extract_schemas

source ·
pub fn extract_schemas(extract: bool)
Expand description

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 disabled by default.

This will automatically clear the schemas stored in the context when they are merged into the documentation.

warning: This might cause name conflicts that are not detected! For more information see https://github.com/GREsau/schemars/issues/62.