-
Notifications
You must be signed in to change notification settings - Fork 226
Add a new operation config to override the SetOutput
wrapper field
#78
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 new operation config to override the SetOutput
wrapper field
#78
Conversation
pkg/generate/testdata/models/apis/dynamodb/0000-00-00/generator.yaml
Outdated
Show resolved
Hide resolved
d018804
to
153df1d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@a-hilaly left a little suggestion to replace the goto with a simple recursion.
In some AWS APIs `Describe` operations output contains the wanted information in a wrapper field like `TableDescription` and `GlobalTableDescription` ... However in some other APIs for the same operation type, the wanted information is wrapped in different nested object, like `BackupDescription.BackupDetails` for example. This patch adds a new operation configuration that instructs the code-generator to use a specific field path, in order to find the struct that contains the information we want to set the output from.
153df1d
to
42c735f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merci beaucoup, monsieur :)
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: A-Hilaly, jaypipes The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Issue N/A
In some AWS APIs
Describe
operations output contains thewanted information in a wrapper field like
TableDescription
andGlobalTableDescription
... However in some other APIs for the sameoperation type, the wanted information is wrapped in different nested
object, like
BackupDescription.BackupDetails
for example.Description of changes:
This patch adds a new operation configuration that instructs the
code-generator to use a specific field path, in order to find the
struct that contains the information we want to set the output from.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.