jsonschema2md icon indicating copy to clipboard operation
jsonschema2md copied to clipboard

Add support for `pattern` for regex constrained properties.

Open jjrdk opened this issue 1 year ago • 3 comments

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.

jjrdk avatar Oct 06 '24 20:10 jjrdk

Thanks, You just should adapt the test expected value related to your changes :-)

sbrunner avatar Oct 07 '24 08:10 sbrunner

Thanks, You just should adapt the test expected value related to your changes :-)

Sorry, bad push. Fixed.

jjrdk avatar Oct 07 '24 11:10 jjrdk

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 avatar Oct 07 '24 12:10 sbrunner

@sbrunner Can you close this?

reteps avatar Apr 15 '25 06:04 reteps