Skip to content
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

Add a strict option for serializers #674

Open
SanderMertens opened this issue Apr 1, 2018 · 0 comments
Open

Add a strict option for serializers #674

SanderMertens opened this issue Apr 1, 2018 · 0 comments

Comments

@SanderMertens
Copy link
Member

By default, serializers ignore fields that they don't recognize. This allows for parsing serialized data that contains fields that are not required by the process in which it is deserialized.

In some scenarios however, serialized data is created specifically for a process (like a configuration file) and when it contains a field that is not recognized, it likely indicates an error. To make it easier to detect errors in these scenarios, serializers should be stricter.

To accommodate for this, the serializer framework should allow to either be strict or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant