Releases: GREsau/schemars
Releases · GREsau/schemars
v0.8.17
v0.8.16
v0.8.15
v0.8.14
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 toschema_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
andbigdecimal::BigDecimal
now match how those types are serialized by default, i.e. as numeric strings (#248)
v0.8.13
Added:
- Implement
JsonSchema
forsemver::Version
(#195 / #238) - Include const generics in generated schema names (#179 / #239)
- Implement
JsonSchema
for types from indexmap v2 (#226 / #240) - Implement
JsonSchema
forserde_json::value::RawValue
(#183)
Changed:
- Minimum supported rust version is now 1.60.0
v0.8.12
v0.8.11
v0.8.10
v0.8.9
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
andarrayvec07
(#142)- This also adds
uuid08
andarrayvec05
feature flags for the previously supported versions of these crates. The existinguuid
andarrayvec
flags are still supported for backward-compatibility, but they are deprecated. - Similarly,
indexmap1
feature flag is added, andindexmap
flag is deprecated.
- This also adds