Skip to content
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

Fix regex metacharacters in enums #26

Merged
merged 1 commit into from
Jun 5, 2024

Conversation

michaelmior
Copy link
Contributor

When string enums contains regular expression meta characters such as ^ they are not properly escaped, which can cause canonicalization to produce incorrect results.
This fix may not be perfect since Python does not use ECMA 262 syntax for regular expressions as in JSON Schema.

@shinnar shinnar merged commit 8e65354 into IBM:master Jun 5, 2024
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants