Radu Almășan created JOHNZON-356: ------------------------------------ Summary: patternProeprties for nested properties Key: JOHNZON-356 URL: https://issues.apache.org/jira/browse/JOHNZON-356 Project: Johnzon Issue Type: Improvement Reporter: Radu Almășan Attachments: 0001-fix-using-patternProperties-in-nested-objects.patch
When using {{patternProperties}} on nested properties it apparently gets ignored. For example for the following schema: {code:java} { "type": "object", "properties": { "nested": { "type": "object", "patternProperties": { "[0-9]+": { "type": "number" } } } } }{code} This JSON would appear valid: {code:java} { "nested": { "1": "foo" } } {code} I believe this is because the code isn't using the {{valueProvider}} to resolve the actual validable but is always defaulting to the root object. I do not have access to push a branch and create a PR so I'm attaching the git patch to this issues with the fix. -- This message was sent by Atlassian Jira (v8.20.1#820001)