-
Notifications
You must be signed in to change notification settings - Fork 34
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
Unmarshal should ignore elements in JSON that do not have a corresponding attribute #212
Labels
bug
Something isn't working
Comments
bendbennett
added a commit
that referenced
this issue
Jul 27, 2022
of opts which can be used to modify the unmarshalling behaviour, such as ignoring undefined attributes (#212)
bendbennett
added a commit
that referenced
this issue
Jul 27, 2022
of opts which can be used to modify the unmarshalling behaviour, such as ignoring undefined attributes (#212)
bendbennett
added a commit
that referenced
this issue
Jul 27, 2022
bendbennett
added a commit
that referenced
this issue
Jul 27, 2022
bendbennett
added a commit
that referenced
this issue
Jul 28, 2022
* Adding alternative implementation of Unmarshal which allows supplying of opts which can be used to modify the unmarshalling behaviour, such as ignoring undefined attributes (#212) * Upper case JSONOpts field (#212) * Code review changes (#212) * Apply suggestions from code review Co-authored-by: Brian Flad <bflad417@gmail.com> Co-authored-by: Brian Flad <bflad417@gmail.com>
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
terraform-plugin-go version
Relevant provider source code
Expected Behavior
The test should pass.
Actual Behavior
The test fails with the following error:
Proposals
Unmarshal
so that elements that do not have a corresponding attribute can optionally be silently ignored.References
This behaviour was discovered during the investigation of Unable to Read Previously Saved State for UpgradeResourceState TF 0.12.
The text was updated successfully, but these errors were encountered: