paperclip_core::v2

Attribute Macro api_v2_schema_struct

source
#[api_v2_schema_struct]
Expand description

Converts your struct to support deserializing from an OpenAPI v2 Schema object (example). This adds the necessary fields (in addition to your own fields) and implements the Schema trait for parsing and codegen.