Skip to content

v0.8.14

Compare
Choose a tag to compare
@GREsau GREsau released this 17 Sep 19:58
· 134 commits to master since this release

Added:

  • Add #[schemars(inner(...)] attribute to specify schema for array items (#234)

Changed:

  • New optional associated function on JsonSchema trait: schema_id(), which is similar to schema_name(), but does not have to be human-readable, and defaults to the type name including module path. This allows schemars to differentiate between types with the same name in different modules/crates (#62 / #247)

Fixed:

  • Schemas for rust_decimal::Decimal and bigdecimal::BigDecimal now match how those types are serialized by default, i.e. as numeric strings (#248)