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
We could have a way if some raw data is valid given a structure, it could be a static method like:
const Car = attributes({ model: String })(class Car { }); const { valid, errors } = Car.validate({ model: 123 }); valid; // false errors; // [ { message: '"model" must be a string', path: 'model' } ]
I'm not sure about the API and the name of the method yet.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
We could have a way if some raw data is valid given a structure, it could be a static method like:
I'm not sure about the API and the name of the method yet.
The text was updated successfully, but these errors were encountered: