v1.0.0-alpha.2
Pre-release
Pre-release
Added
#[schemars(extend("key" = value))]
attribute which can be used to add properties (or replace existing properties) in a generated schema (#50 / #297)- Can be set on a struct, enum, or enum variant
- Value can be any expression that results in a value implementing
Serialize
- Value can also be a JSON literal following the rules of
serde_json::json!(value)
macro, i.e. it can interpolate other values that implementSerialize