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:
Alastair Feille 2021-03-21 09:43:58 -05:00 committed by GitHub
parent c4ef7bad22
commit addac6d386
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 48 additions and 10 deletions

View file

@ -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)