New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update from 1.0.81 to 1.0.83 causes schema validation failure #814
Comments
Both 1.0.82 and 1.0.83 contain changes to how regular expressions work. See #738 and #782 I wrote some unit-tests and was able to reproduce the issue with options but not the issue with slices. The problem with options is that the pattern is not matching the end anchor when using the JDK's pattern. This does not occur when using Joni's regex. You can switch to Joni by setting
|
Hi @fdutton, thanks for the quick follow-up. Let me know if you need a hand with anything and I will open a PR if I come across a fix. |
@scrawfor99 This issue is actually in Java. The patterns in JSON Schema are not implicitly anchored so we must use To make this work in all cases, I am now checking for an end anchor and wrapping the pattern in a group. |
@scrawfor99 @fdutton p.s. you can use this tool: https://regexper.com/#%5E%5C%5Cd*%7C%5Ba-zA-Z_%5D%2B%24 to visualize how regexp works |
Hi all,
I am reaching out with an issue I have encountered.
I am trying to upgrade the dependency from 1.0.81 to 1.0.83 however after updating my schema validation tests now fail:
From looking at the CHANGELOG it does not look like there were any changes between the versions that should cause a break in the regex matching or the the schema to be parsed differently.
Is this something you have seen before?
Here is an example doc:
And the related SCHEMA:
The text was updated successfully, but these errors were encountered: