Skip to content

Remove #[serde(deny_unknown_fields)] #753

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

Merged
merged 1 commit into from
Dec 14, 2023

Conversation

ramosbugs
Copy link
Contributor

Adding new fields to request payloads is typically not considered to be a breaking change, but using #[serde(deny_unknown_fields)] would cause all Lambda functions to start failing immediately in production if a new feature were deployed that added a new request field.

Fixes #750.

By submitting this pull request

  • I confirm that my contribution is made under the terms of the Apache 2.0 license.
  • I confirm that I've made a best effort attempt to update all relevant documentation.

Adding new fields to request payloads is typically not considered
to be a breaking change, but using #[serde(deny_unknown_fields)]
would cause all Lambda functions to start failing immediately in
production if a new feature were deployed that added a new request
field.

Fixes awslabs#750.
Copy link
Contributor

@calavera calavera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@calavera calavera merged commit 9b21cd0 into awslabs:main Dec 14, 2023
@ramosbugs ramosbugs deleted the remove-deny-unknown-fields branch December 14, 2023 02:57
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

Successfully merging this pull request may close these issues.

Consider removing #[serde(deny_unknown_fields)] from request types
2 participants