Revert unintentional change in behaviour when combining default and required attributes (#293)

Never add a field with the `default` attribute to a schema's `required` properties
This commit is contained in:
Graham Esau 2024-05-18 22:37:40 +01:00 committed by GitHub
parent cf5be1b266
commit 7ecaa7feab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 12 additions and 6 deletions

View file

@ -3,7 +3,7 @@ name = "schemars"
description = "Generate JSON Schemas from Rust code"
homepage = "https://graham.cool/schemars/"
repository = "https://github.com/GREsau/schemars"
version = "0.8.19"
version = "0.8.20"
authors = ["Graham Esau <gesau@hotmail.co.uk>"]
edition = "2021"
license = "MIT"
@ -14,7 +14,7 @@ build = "build.rs"
rust-version = "1.60"
[dependencies]
schemars_derive = { version = "=0.8.19", optional = true, path = "../schemars_derive" }
schemars_derive = { version = "=0.8.20", optional = true, path = "../schemars_derive" }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0.25"
dyn-clone = "1.0"