We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently joi-sql outputs enums as any() type. https://github.com/TehShrike/joi-sql/blob/master/build.js#L68.
joi-sql
any()
As far as I can tell, MySQL enum values can only be a string. https://dev.mysql.com/doc/refman/5.7/en/enum.html#enum-literals)
I've switched yup-sql to output enums as a string type. https://github.com/daytonlowell/yup-sql/blob/master/build.js#L75
yup-sql
string
Thoughts?
The text was updated successfully, but these errors were encountered:
Makes sense to me 👍
Sorry, something went wrong.
No branches or pull requests
Currently
joi-sql
outputs enums asany()
type.https://github.com/TehShrike/joi-sql/blob/master/build.js#L68.
As far as I can tell, MySQL enum values can only be a string.
https://dev.mysql.com/doc/refman/5.7/en/enum.html#enum-literals)
I've switched
yup-sql
to output enums as astring
type.https://github.com/daytonlowell/yup-sql/blob/master/build.js#L75
Thoughts?
The text was updated successfully, but these errors were encountered: