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
I have come to like the the flattened nature of the errors in Pydantic. The use of loc instead of nested maps works better in the face of lists, whose keys are integers and cannot be put into JSON objects without being stringified. The data structure also allows for more information to be returned other than the message, which is a good thing.
I am thinking a data structure like this would be good for DeserializationErrors to serialize into:
At the same time, DeserializationError should either gain lots of functionality to assist with building errors or there should be a Builder class that assists with this and can be converted to a DeserializationError.
The text was updated successfully, but these errors were encountered:
I have come to like the the flattened nature of the errors in Pydantic. The use of
loc
instead of nested maps works better in the face of lists, whose keys are integers and cannot be put into JSON objects without being stringified. The data structure also allows for more information to be returned other than the message, which is a good thing.I am thinking a data structure like this would be good for
DeserializationError
s to serialize into:At the same time,
DeserializationError
should either gain lots of functionality to assist with building errors or there should be aBuilder
class that assists with this and can be converted to aDeserializationError
.The text was updated successfully, but these errors were encountered: