Skip to main content

Schema

Derive Macro Schema 

Source
#[derive(Schema)]
{
    // Attributes available to this derive:
    #[schema]
    #[serde]
}
Expand description

Derive macro for Schema

Supports #[schema(name = "CustomName")] attribute to set custom OpenAPI schema name.