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

allow additional properties #35

Merged

Conversation

mathewab
Copy link
Collaborator

@mathewab mathewab commented Apr 26, 2024

This prevents the client from breaking whenever a new field is introduced in the APIs.

The models used to break because the unmarshall code usesdecoder.DisallowUnknownFields(). This PR fixes that and also gives the oppurtunity for the user to pass new properties that are not supported by this client, but available in the API. They can pass these properties using the "AdditionalProperties" map

https://github.com/infobloxopen/bloxone-go-client/pull/35/files#diff-56f2d57c2ab9a57559a741675a96a11854426603c730b32730b2701085b63a91L503

@venkat-iblox
Copy link
Collaborator

Can you add to the description how this would prevent the breakage?

@mathewab
Copy link
Collaborator Author

Can you add to the description how this would prevent the breakage?

updated the description

@venkat-iblox venkat-iblox merged commit afd451b into infobloxopen:master Apr 26, 2024
1 check passed
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.

2 participants