Skip to content

Commit 0b4c0b4

Browse files
authored
corrected code typo and example
Nested using value_1 example had a. maxOccurs="unbounded" (should be 1) b. type_2 not needed in example and makes for misunderstanding. Nested list using value_1 example had typo - missing ]
1 parent 359ed4b commit 0b4c0b4

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)