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

Schema generator support for string patterns and formats #54

Open
Tracked by #41
robere2 opened this issue Dec 3, 2023 · 0 comments
Open
Tracked by #41

Schema generator support for string patterns and formats #54

robere2 opened this issue Dec 3, 2023 · 0 comments
Labels
Module: Schemas Issues pertaining to the @mcsb/schemas package. Priority: Low Issues which aren't critical, security-related, or significantly beneficial to users. Type: Enhancement Issues that are about a way in which the application can be improved.

Comments

@robere2
Copy link
Owner

robere2 commented Dec 3, 2023

I'd like the schema generator to parse, and maybe even infer string value patterns. For example, purchaserUuid should have a UUID regex pattern, but if it doesn't, it should add it. Or, if it has a pattern but doesn't match, it should print an error for the merger to correct.

The gen-json-schema package supports inferring string formats, but it's currently disabled due to some false positives. Maybe it supports more fine-grain control?

@robere2 robere2 changed the title Parse, and maybe even infer string value patterns. For example, purchaserUuid should have a UUID regex pattern, but if it doesn't, it should add it. Or, if it has a pattern but doesn't match, it should print an error for the merger to correct. Schema generator support for string patterns and formats Dec 3, 2023
@robere2 robere2 added Type: Enhancement Issues that are about a way in which the application can be improved. Priority: Low Issues which aren't critical, security-related, or significantly beneficial to users. Module: Schemas Issues pertaining to the @mcsb/schemas package. labels Dec 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Module: Schemas Issues pertaining to the @mcsb/schemas package. Priority: Low Issues which aren't critical, security-related, or significantly beneficial to users. Type: Enhancement Issues that are about a way in which the application can be improved.
Projects
None yet
Development

No branches or pull requests

1 participant