Open amosonn opened 4 years ago
What does that schema do? Instances can have properties so long as they're not an object or have no properties?
Also, I'm winding down support for this library in favor of the new one. Happy to pull in a PR if you want to try and fix it, though.
Yes, that what it means. It's of course contrived, but it is just a minimal reproduction from a larger schema I had. I think that also other subschemas inside additionalProperties
aren't properly checked.
As mentioned above, this bug doesn't exist in the newer one, and I guess we'll switch soon. But I thought if I found it, I might as well document it.
Describe the bug
additionalProperties
inside anadditionalProperties
subschema is not properly validated.To Reproduce
Should give
false
, givestrue
.Version
Additional context This problem doesn't exist in JsonSchema.NET.