-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat: add data model validation #43
Conversation
@xseman - can you please give feedback?
|
src/encode.ts
Outdated
/** | ||
* If true, validates data model before encoding it. | ||
* | ||
* @default false | ||
*/ | ||
validateModel: boolean; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I initially suggested a default of false, but after thinking it over, I believe true would be more expected. Also, a simple validate
option would be nicer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xseman - this will cause validation to run by default in the terminal without an option to turn it out. Should I add an optional flag withoutValidation
to the cli command?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xseman - this will cause validation to run by default in the terminal without an option to turn it out. Should I add an optional flag
withoutValidation
to the cli command?
Great, I almost forgot about the CLI. Sure, go ahead and add it as a simple validation
option.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution @lukasbicus! |
closes #17