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

The readme regex examples are missing the match property #66

Open
vedeja opened this issue Oct 9, 2019 · 1 comment
Open

The readme regex examples are missing the match property #66

vedeja opened this issue Oct 9, 2019 · 1 comment

Comments

@vedeja
Copy link

vedeja commented Oct 9, 2019

The matching rule example for regex appears to be missing the "match": "regex" property, unless the specification actually allows for it to be omitted.

"$.body[0][*].id": { "regex": "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}" }

@uglyog
Copy link
Member

uglyog commented Oct 13, 2019

"match": "regex" is required, the example is wrong. But most implementations will probably work without it. Maybe.

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

No branches or pull requests

2 participants