Open
Description
In the AWS service definition you're using as a source for this, there's a "members" field:
"ListUsersResponse": {
"type": "structure",
"required": [
"Users"
],
"members": {
"Users": {
"shape": "userListType",
"documentation": "<p>A list of users.</p>"
},
...
}
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:
ListUsersResponse:
type: object
required:
- Users
properties:
Users:
$ref: '#/components/schemas/userListType'
description: A list of users.
...
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:
$ https_proxy=localhost:8080 curl "https://iam.amazonaws.com/?Action=ListUsers&Version=2010-05-08"
<ListUsersResponse xmlns="https://iam.amazonaws.com/doc/2010-05-08/">
<ListUsersResult>
<IsTruncated>false</IsTruncated>
<Users>
<member>
...
<UserName>shaun.verch</UserName>
<Arn>arn:aws:iam::ID:user/shaun.verch</Arn>
...
</member>
</Users>
</ListUsersResult>
...
</ListUsersResponse>
When I hit an endpoint that returns multiple results (ListRoles), it actually returns multiple "member" objects rather than multiple "Roles".