Is your feature request related to a problem? Please describe.
I am using a JSON schema with a regular expression that does not work in Python. The utility imports it and adds it as a regex to the object. This creates issues when using the models generated by the tool, as the models will throw errors on import.
Describe the solution you'd like
The utility should reject regular expressions that python cannot parse. It should generate a warning and either generate a model without a regular expression (easy) or translate the regular expression (hard). Optionally, it can include a comment in the model with the rejected regex so that the user can attempt to recreate it in python.
It should be straightforward to try and execute "re.compile()" on any regex discovered in the schema, and catch any errors thrown.
Additional context
The schema is here: https://github.com/usnistgov/OSCAL/tree/main/json/schema
The regular expression in question is: "^(\p{L}|)(\p{L}|\p{N}|[.\-])*$"
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too