Skip to content

Releases: GREsau/schemars

v0.8.17

28 Apr 18:51
Compare
Choose a tag to compare

Changed:

  • Update to syn 2.0, which should improve compile times in many cases (#281)

v0.8.16

11 Nov 20:40
Compare
Choose a tag to compare

Fixed:

  • Reduce size of MIR output (and improve release-mode compile time) when deriving JsonSchema

v0.8.15

17 Sep 20:35
Compare
Choose a tag to compare

Added:

  • Implement JsonSchema for BigDecimal from bigdecimal 0.4 (#237)

v0.8.14

17 Sep 19:58
Compare
Choose a tag to compare

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)

v0.8.13

28 Aug 20:21
Compare
Choose a tag to compare

Added:

  • Implement JsonSchema for semver::Version (#195 / #238)
  • Include const generics in generated schema names (#179 / #239)
  • Implement JsonSchema for types from indexmap v2 (#226 / #240)
  • Implement JsonSchema for serde_json::value::RawValue (#183)

Changed:

  • Minimum supported rust version is now 1.60.0

v0.8.12

26 Feb 23:24
Compare
Choose a tag to compare

Added:

  • Implement JsonSchema for smol_str::SmolStr (#72)

Changed:

  • Change serde_json dependency min version to 1.0.25 (was 1.0.0) (#192)

v0.8.11

02 Oct 19:04
Compare
Choose a tag to compare

Added:

  • Replace auto-inferred trait bounds with bounds specified in #[schemars(bound = "...")] attribute

Changed:

  • Derived JsonSchema now respects attributes on unit enum variants (#152)
  • Minimum supported rust version is now 1.45.0

v0.8.10

17 May 17:36
Compare
Choose a tag to compare

Fixed:

  • Undo "Support generic default values in default attributes (#83)" as it inadvertently introduced a breaking change (#144)

v0.8.9

16 May 21:48
Compare
Choose a tag to compare

Added:

  • Support generic default values in default attributes (#83)
  • Add missing MIT licence text for usage of code from regex_syntax crate (#132)
  • Support uuid v1 and arrayvec 0.7 via feature flags uuid1 and arrayvec07 (#142)
    • This also adds uuid08 and arrayvec05 feature flags for the previously supported versions of these crates. The existing uuid and arrayvec flags are still supported for backward-compatibility, but they are deprecated.
    • Similarly, indexmap1 feature flag is added, and indexmap flag is deprecated.

v0.8.8

25 Nov 22:34
Compare
Choose a tag to compare

Added:

  • Implement JsonSchema for types from rust_decimal and bigdecimal crates (#101)

Fixed:

  • Fixes for internally tagged enums and flattening additional_properties (#113)