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
The current implementation of propertyNames is completely separate from the remaining validation code, implementing special cases for stuff like minLength.
According to the spec, however, propertyNames should be treated like a normal json schema being applied to a text node of the property value.
- 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
The current implementation of
propertyNames
is completely separate from the remaining validation code, implementing special cases for stuff likeminLength
.According to the spec, however,
propertyNames
should be treated like a normal json schema being applied to a text node of the property value.This has lead to issues, such as #342 and #326.
I propose to just do what the spec says and apply the node content under
propertyNames
to each field name as if it were aTextNode
.The text was updated successfully, but these errors were encountered: