v1.0.0-alpha.15
Pre-release
Pre-release
·
111 commits
to master
since this release
Added
SchemaSettingsnow has acontractfield which determines whether the generated schemas describe how types are serialized or deserialized. By default, this is set toDeserialize, as this more closely matches the behaviour of previous versions - you can change this toSerializeto instead generate schemas describing the type's serialization behaviour (#48 / #335)
Changed
- Schemas generated for enums with no variants will now generate
false(or equivalently{"not":{}}), instead of{"enum":[]}. This is so generated schemas no longer violate the JSON Schema spec's recommendation that a schema'senumarray "SHOULD have at least one element".