omissis / go-jsonschema

A tool to generate Go data types from JSON Schema definitions.
MIT License
558 stars 89 forks source link

Feature request: string pattern validation #239

Open antontornqvist opened 2 months ago

antontornqvist commented 2 months ago

Currently the code generated does not validate string patterns. Would be nice to have, any plans to add it?

omissis commented 2 months ago

hey! uhm it's not in the plans for now, no. I want to close the last PR, do a round of cleanups on the issues, and then probably kick-off a rewrite :)

antontornqvist commented 2 months ago

Ok, I can open a PR for adding this functionality if you accept contributions?

omissis commented 2 months ago

oh if you're willing, sure! that would be great :)

antontornqvist commented 2 months ago

There was some other validation missing that I added in the PR as well. (exclusive)maximum and (exclusive)minimum for numeric types and uniqueItems for arrays :)