-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Dynamic Schema Generation #203
Comments
Sounds like a fun project. I agree it doesn't belong in joi itself. I don't have any use cases for this but if someone comes with one, I'm happy to reopen the issue. |
If anyone stumbles across this, I have the exact same use case as OP describes. I have solved it using
|
Why we need eval (evil) here? Joi is chainable. |
@hueniverse I'd like to pick this back up, how best to go about it? A new project? A PR? Thanks! |
See #1867 |
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions. |
This could be implemented outside of the core, but it would be nice to have a standard JSON format to create joi schemas on the fly.
Use case:
Say a client wants to define a new data type with validation. JSON interpretation would allow both the data and the schema to be saved in the db.
The text was updated successfully, but these errors were encountered: