Closed pdurbin closed 4 months ago
Hi There,
The regular expressions supported by vacuum are ECMA-262
compatible only. This is because we use a built in JavaScript engine to compile the regular expression. If it fails - the pattern is no good and does not conform to the standard.
The standard for patterns is a part of the JSON Schema standard.
https://json-schema.org/understanding-json-schema/reference/regular_expressions
The regular expression syntax used is from JavaScript ([ECMA 262](https://www.ecma-international.org/publications-and-standards/standards/ecma-262/), specifically).
Any other dialect of regex is going to fail, because technically... it should :)
Thanks for using vacuum.
Hi! I'm playing around with vacuum, feeding it an OpenAPI doc generated from Java using SmallRye.
I'm getting this error...
...on a regular expression that works fine in Java (more context):
"^[^:<>;#/\"\\*\\|\\?\\\\]*$"
When I print the err in vacuum, it says this:
Apologies if I'm barking up the wrong tree with this error! Vacuum seems great!