Skip to content

Commit cb61df7

Browse files
Merge pull request #569 from pashute/patch-1
corrected code typo and example
2 parents 6bd479e + 0b4c0b4 commit cb61df7

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

docs/datastructures.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,11 @@ Nested using _value_1
105105
targetNamespace="http://tests.python-zeep.org/">
106106
<element name='ElementName'>
107107
<complexType xmlns:xsd="http://www.w3.org/2001/XMLSchema">
108-
<choice maxOccurs="unbounded">
108+
<choice maxOccurs="1">
109109
<sequence>
110110
<element name="item_1_a" type="string"/>
111111
<element name="item_1_b" type="string"/>
112112
</sequence>
113-
<element name="item_2" type="string"/>
114113
</choice>
115114
</complexType>
116115
</element>
@@ -144,7 +143,7 @@ Nested list using _value_1
144143
.. code-block:: python
145144
146145
element = client.get_element('ns0:ElementName')
147-
obj = element(_value_1=[{'item_1': 'foo'}, {'item_2': 'bar'})
146+
obj = element(_value_1=[{'item_1': 'foo'}, {'item_2': 'bar'}])
148147
149148
150149
Any objects

0 commit comments

Comments
 (0)