-
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
$-sign in object keys are escaped in the ValidationError message #921
Comments
I'm also facing this issue.
But then í is escaped to í (hexadecimal representation)... |
It looks like this is caused by this line which goes through and escapes HTML. |
Can we please have an option to disable this? It's really annoying when your app isn't even HTML based. |
I would also appreciate it if an option could be added to disable it. |
Thank you for this change! 💯 |
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. |
Context
What are you trying to achieve or the steps to reproduce ?
I am trying to validate objects with a$-sign in the key name and expect the validation error message to reference the same key name, but the $ -sign is escaped in the error message (it is not escaped in the path or the _object though). I would prefer it to not be escaped when I return the ValidationError object as JSON response directly.
Is this intentional, and if so, why is it not escaped the other places?
Which result you had ?
$top
is escaped to"$top"
What did you expect ?
I expect
$top
to not be escaped (or escaped everywhere?)The text was updated successfully, but these errors were encountered: