-
Notifications
You must be signed in to change notification settings - Fork 34
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
Error messages not present in the generated JSON #40
Comments
Which JSON Schema property do you propose using here? |
Hi Epiphone, I would like your code to fill this JSON property : ValidationSchema.properties.propertyName.message This can be done by adding this block of code at line 128 of src/index.ts.
My goal is that the backend can generates a rules file based on decorators and then the frontend can receives these rules to validate with the same rules that the backend without any differences between front and back rules. And all these rules will be coded with decorators in backend entities (typeorm) only once. |
There's no |
Hi, |
Hi,
It would be great to include the error message inside the generated JSON.
Example:
@isemail({}, {message: "Please fill a correct email"})
Actualy the generated JSON doesn't contains the message.
The text was updated successfully, but these errors were encountered: