pub fn component<T: SchemaType>(
name: &'static str,
schema: Schema<T>,
) -> Schema<T>Expand description
handle the schema as a component schema named name.
This is useful for reusing schemas in the OpenAPI document.
pub fn component<T: SchemaType>(
name: &'static str,
schema: Schema<T>,
) -> Schema<T>handle the schema as a component schema named name.
This is useful for reusing schemas in the OpenAPI document.