-
Notifications
You must be signed in to change notification settings - Fork 10
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
The "members" attribute in the AWS service definition is literally a list of "member" objects #28
Comments
I think the renaming of What I don't know is whether this is the case for all xml-based AWS APIs, so paging @pimterry in case we need to refine the logic further. |
The AWS APIs on GitHub are updated now, it will take about 35 minutes for the CI job to finish to publish them to the APIs-Guru API. |
Based on these openapi docs, it looks like the Although looking further down that page, I think if you also add |
The |
Ah, so will setting |
In short: I have no idea 😃. I've done some digging though. Your fix here is above for both Route53 ( The AWS response example includes: <DelegationSet>
<NameServers>
<NameServer>ns-2048.awsdns-64.com</NameServer>
<NameServer>ns-2049.awsdns-65.net</NameServer>
<NameServer>ns-2050.awsdns-66.org</NameServer>
<NameServer>ns-2051.awsdns-67.co.uk</NameServer>
</NameServers>
</DelegationSet> I.e. with no "S2m": {
"type": "structure",
"required": [
"NameServers"
],
"members": {
"Id": {},
"CallerReference": {},
"NameServers": {
"type": "list",
"member": {
"locationName": "NameServer"
}
}
}
}, Cloudfront ( Similarly the AWS docs for ListTagsForResource shows a response like: <Tags>
<Items>
<Tag>
<Key>string</Key>
<Value>string</Value>
</Tag>
</Items>
</Tags> Again no "TagList": {
"type": "list",
"member": {
"shape": "Tag",
"locationName": "Tag"
}
}, ELB ( Looking at the response from DescribeLoadBalancers for example, it seems like every ELB list uses IAM (the original issue) is also using the So, maybe we should actually only do this for the XML |
Well I can at least confirm with awscurl that this is what actually gets returned for that cloudfront request (and it has no "members", as described):
|
In the AWS service definition you're using as a source for this, there's a "members" field:
You reasonably assumed that "members" is a structural thing to describe what members a "ListUsersResponse" has, and have changed it to "properties" in your generated OpenAPI spec:
However, when hitting the API directly using https://github.com/okigan/awscurl and https://github.com/sverch/aws-signature-proxy, the response actually has "member" sub-objects in it:
When I hit an endpoint that returns multiple results (ListRoles), it actually returns multiple "member" objects rather than multiple "Roles".
The text was updated successfully, but these errors were encountered: