v0.4.0 Fixes #38 and #28 and introduces more 3.1 schema support. #40
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
v0.4.0
Updates thebase.Schema
for both high and low-level models to fix some inaccuracies and introduce missing properties for JSON Schema / v3.1What was added
if
else
then
propertyNames
contains
minContains
maxContains
unevaluatedItems
unevaluatedProperties
dependentSchemas
patternProperties
What changed
DynamicValue
was added as a container for values with differing types. This follows the same pattern established in the low level model.Items
can now be aSchemaProxy
or abool
(usingDynamicValue
), no longer a slice.Not
is also no longer a slice.ExclusiveMinimum
andExclusiveMaximum
are nowDynamicValue
pointers that can be either abool
orint64
The
ExclusiveMinimumBool
andExclusiveMaximumBool
properties have been removed as they are now combined.These are breaking changes, but it does set a standard for how to proceed.