You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@guandong Good catch. The propertyNames only supports limited validation today based on the official test cases and we have another issue to add more validations against it. This should be addressed at the same time.
- implement property names in terms of full schema validation
- add test case for complex property name
- added test case for networknt#342
- fixnetworknt#375 tests to expect standard messages
- closesnetworknt#396
- closesnetworknt#342
JonasProgrammer
added a commit
to JonasProgrammer/json-schema-validator
that referenced
this issue
Apr 11, 2021
- implement property names in terms of full schema validation
- add test case for complex property name
- added test case for networknt#342
- fixnetworknt#375 tests to expect standard messages
- closesnetworknt#396
- closesnetworknt#342
schema:
{"type": "object", "patternProperties": { "": { "enum": [1,2] } }, "propertyNames": { "enum": ["a"] } }
data:
{"a": 1, "abc": 2, "abcd": 3}
validate with SpecVersion.VersionFlag.V201909 get errors:
$.abcd: does not have a value in the enumeration [1, 2]
The text was updated successfully, but these errors were encountered: