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

Fix query list serialization examples #732

Merged
merged 1 commit into from
Mar 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions docs/source/1.0/spec/aws/aws-ec2-query-protocol.rst
Original file line number Diff line number Diff line change
Expand Up @@ -282,16 +282,18 @@ For example, given the following:

structure Ec2QueryListsInput {
ListArg: StringList,
ComplexListArg: GreetingList,

@xmlFlattened
ComplexListArg: GreetingList,
FlattenedListArg: StringList,

// Notice that the xmlName on the targeted list member is ignored.
ListArgWithXmlNameMember: ListWithXmlName,

// Notice that the xmlName on the targeted list member is ignored.
@xmlFlattened
@ec2QueryName("Hi")
@xmlName("IgnoreMe")
ListArgWithXmlName: ListWithXmlName,
FlattenedListArgWithXmlName: ListWithXmlName,
}

list ListWithXmlName {
Expand Down Expand Up @@ -320,10 +322,12 @@ The ``x-www-form-urlencoded`` serialization is:
&ListArg.member.1=foo
&ListArg.member.2=bar
&ListArg.member.3=baz
&ComplexListArg.1.hi=hello
&ComplexListArg.2.hi=hola
&ListArgWithXmlNameMember.1=A
&ListArgWithXmlNameMember.2=B
&ComplexListArg.member.1.hi=hello
&ComplexListArg.member.2.hi=hola
&FlattenedListArg.1=A
&FlattenedListArg.2=B
&ListArgWithXmlNameMember.item.1=A
&ListArgWithXmlNameMember.item.2=B
&Hi.1=A
&Hi.2=B

Expand Down
22 changes: 15 additions & 7 deletions docs/source/1.0/spec/aws/aws-query-protocol.rst
Original file line number Diff line number Diff line change
Expand Up @@ -190,15 +190,17 @@ For example, given the following:

structure QueryListsInput {
ListArg: StringList,
ComplexListArg: GreetingList,

@xmlFlattened
ComplexListArg: GreetingList,
FlattenedListArg: StringList,

// Notice that the xmlName on the targeted list member is ignored.
ListArgWithXmlNameMember: ListWithXmlName,

// Notice that the xmlName on the targeted list member is ignored.
@xmlFlattened
@xmlName("Hi")
ListArgWithXmlName: ListWithXmlName,
FlattenedListArgWithXmlName: ListWithXmlName,
}

list ListWithXmlName {
Expand Down Expand Up @@ -227,10 +229,12 @@ The ``x-www-form-urlencoded`` serialization is:
&ListArg.member.1=foo
&ListArg.member.2=bar
&ListArg.member.3=baz
&ComplexListArg.1.hi=hello
&ComplexListArg.2.hi=hola
&ListArgWithXmlNameMember.1=A
&ListArgWithXmlNameMember.2=B
&ComplexListArg.member.1.hi=hello
&ComplexListArg.member.2.hi=hola
&FlattenedListArg.1=A
&FlattenedListArg.2=B
&ListArgWithXmlNameMember.item.1=A
&ListArgWithXmlNameMember.item.2=B
&Hi.1=A
&Hi.2=B

Expand Down Expand Up @@ -273,6 +277,10 @@ For example, given the following:
value: String
}

structure GreetingStruct {
hi: String,
}

The ``x-www-form-urlencoded`` serialization is:

.. code-block:: text
Expand Down