Replies: 1 comment 2 replies
-
Meant to reply earlier... I like the idea. Let me throw some thoughts out and see what sticks:
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the code I have been writing that uses the deserialization extensively, I have found a need to validate the results post deserialization.
I forked and started working on a rough layout of how this would happen.
Basically, everywhere there is deserialization there would be an optional second step that validated the deserialized results, which could potentially throw a validation error.
The default implementation would do nothing and never throw.
Any thoughts on this?
Here is an example (just a rough sketch):
Beta Was this translation helpful? Give feedback.
All reactions