jsonschema2md
jsonschema2md copied to clipboard
Add support for `pattern` for regex constrained properties.
The JSON Schema spec includes the pattern constraint for properties, but this gets ignored when generating the markdown. This PR fixes this.
The _construct_description_line function has been extended to also look for the pattern keyword and the markdown generation test has been updated to include a pattern constrained property.
Thanks, You just should adapt the test expected value related to your changes :-)
Thanks, You just should adapt the test expected value related to your changes :-)
Sorry, bad push. Fixed.
pre-commit isn't installed on checkout, then it steals have a little change!
https://github.com/sbrunner/jsonschema2md/pull/373/checks?check_run_id=31171656143
@sbrunner Can you close this?