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.
schema
name