Model binder change validation property name #62857
Unanswered
petrkasnal
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I have a question. We are using System.Text.Json in our .NET WebApi project. When I accidentally send a non-valid json to my API (text to number), it will of course return a validation.
Which is fine, of course. However, the name of the property is a bit of a problem for me. Because in our validations we have the property named normally according to the field.
So my question is can I somehow gracefully remove the dollar (root object) from the property name?
Thank you very much
Beta Was this translation helpful? Give feedback.
All reactions