Closed DonKult closed 1 year ago
What you are saying is that before, it worked but the default keyword was ignored (due to standard). Now the default-keyword is used and it fails?
The problem is, when there is a default-value in a $ref
-schema we copy the referenced-schema. Later all the reference are resolved, but not the ones which have been copied.
I fixed this behavior as it was relatively easy to understand and fix. Please feel free to test more.
Hi,
With the schema files:
and the document
entities.json
:The call
json-schema-validate entities.schema.json < entities.json
results inwhile it used to be a valid document before. Yes, it technically wasn't as I was defining a
default
, but I was hoping json-schema-validate would eventually support it. Now it does claim to support it but theschema_ref
codepath inschema::make
seems bugged as I am back to a working and valid document if I comment out these two lines. I am not quite sure how this could be fixed for real though.(The example files do not make a lot of sense, granted, I tried to strip my setup down as much as possible)