Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate uuid.UUID members for uuid jsonschema format #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

zshehov
Copy link

@zshehov zshehov commented Dec 4, 2023

This PR enables the generation of uuid.UUID golang struct members based on jsonschema string fields with specified format parameter with value "uuid".

The current solution of a similar problem - the "date-time" format - is done with a concrete handling for "date-time". The PR includes a slight generalisation where the Generator holds a map for each specific jsonschema format handling.

Copy link

❌ Author of the following commits did not sign a Contributor Agreement:
3dd8afe, 81dee03, 02d1a0b

Please, read and sign the above mentioned agreement if you want to contribute to this project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant