Make HashSet and BTreeSet use the uniqueItems keyword in their schema (#64)
Co-authored-by: Graham Esau <gesau@hotmail.co.uk>
This commit is contained in:
parent
c4ef7bad22
commit
addac6d386
7 changed files with 48 additions and 10 deletions
|
@ -7,6 +7,7 @@
|
|||
### Changed:
|
||||
- Minimum supported rust version is now 1.37.0
|
||||
- Deriving JsonSchema on enums now sets `additionalProperties` to false on generated schemas wherever serde doesn't accept unknown properties. This includes non-unit variants of externally tagged enums, and struct-style variants of all enums that have the `deny_unknown_fields` attribute.
|
||||
- Schemas for HashSet and BTreeSet now have `uniqueItems` set to true (https://github.com/GREsau/schemars/pull/64)
|
||||
|
||||
### Fixed
|
||||
- Fix use of `#[serde(transparent)]` in combination with `#[schemars(with = ...)]` (https://github.com/GREsau/schemars/pull/67)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue