aws-cloudformation / cloudformation-cli-java-plugin

The CloudFormation Provider Development Toolkit Java Plugin allows you to autogenerate java code based on an input schema.
Apache License 2.0
30 stars 47 forks source link

Verify hook handler with extraneous fields #431

Closed brianlaoaws closed 11 months ago

brianlaoaws commented 11 months ago

Issue #, if available: N/A

Description of changes:

Add unit tests to verify that hook handlers can handle input that include extraneous inputs. The extra fields are not part of the target model, but the deserialization will continue to work.

Add unit tests with strict deserializing to verify the negative case.