-
Notifications
You must be signed in to change notification settings - Fork 325
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
Problem validating pattern properties #782
Comments
fdutton
pushed a commit
that referenced
this issue
May 22, 2023
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With the new version 1.0.82 we got errors validating our openapi 3.0 documents. The reason is, that we use properties which a allowed by a patternproperties rule in the openapi spec:
Our properties (e.g.
x-api-id
) are conform with the spec. But the newJDKRegularExpression
class fails to validate our property.The reason is that
JDKRegularExpression
usesMatcher.matches()
to validate the input. This method returns true only if the whole string matches - the regex is treated bymatches()
Method as 'anchored regex'.The json schema spec states:
I suggest to change
JDKRegularExpression
to:The text was updated successfully, but these errors were encountered: