macro_rules! impl_field_schema {
($ty:ty) => { ... };
}Expand description
Implements FieldSchema for types that already have PartialSchema.
Users call this for their own types that derive ToSchema:
ⓘ
#[derive(utoipa::ToSchema)]
enum TicketStatus { Open, Closed }
cinderblock_json_api::impl_field_schema!(TicketStatus);