You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When having objectMapper->getDeserializer()->getConfig()->allowUnknownFields = false; and receiving an unknown field, the error message is a quite generic Error. Unknown field:
When having
objectMapper->getDeserializer()->getConfig()->allowUnknownFields = false;
and receiving an unknown field, the error message is a quite genericError. Unknown field
:oatpp/src/oatpp/parser/json/mapping/Deserializer.cpp
Line 468 in bc24a9c
I'd like to enhance it with the actual field name, something like
Error. Unknown field 'foobar'
.However, the
Caret
class is storing only aconst char*
to an error message, and I'd need to store something like astd::string
:oatpp/src/oatpp/core/parser/Caret.cpp
Line 184 in bc24a9c
The actual question is: would you be open to receiving a PR with such an enhancement? And if so, what would be your preferred way of achieving it?
The text was updated successfully, but these errors were encountered: