Skip to content

Commit 4d431e5

Browse files
nejchJohnVillalovos
authored andcommitted
docs(ext): fix rendering for RequiredOptional dataclass
1 parent 0f607f6 commit 4d431e5

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

docs/ext/manager_tmpl.j2

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,43 +7,43 @@
77

88
{% if cls._create_attrs %}
99
**Object Creation**
10-
{% if cls._create_attrs[0] %}
11-
Mandatory attributes for object create:
10+
{% if cls._create_attrs.required %}
11+
Required attributes for object create:
1212
{% for item in cls._create_attrs.required %}
1313
- ``{{ item }}``
1414
{% endfor %}
1515
{% endif %}
16-
{% if cls._create_attrs[1] %}
16+
{% if cls._create_attrs.optional %}
1717
Optional attributes for object create:
1818
{% for item in cls._create_attrs.optional %}
1919
- ``{{ item }}``
2020
{% endfor %}
2121
{% endif %}
22-
{% if cls._create_attrs[2] %}
22+
{% if cls._create_attrs.exclusive %}
2323
Mutually exclusive attributes for object create:
24-
{% for item in cls._create_attrs.exlusive %}
24+
{% for item in cls._create_attrs.exclusive %}
2525
- ``{{ item }}``
2626
{% endfor %}
2727
{% endif %}
2828
{% endif %}
2929

3030
{% if cls._update_attrs %}
3131
**Object update**
32-
{% if cls._update_attrs[0] %}
33-
Mandatory attributes for object update:
32+
{% if cls._update_attrs.required %}
33+
Required attributes for object update:
3434
{% for item in cls._update_attrs.required %}
3535
- ``{{ item }}``
3636
{% endfor %}
3737
{% endif %}
38-
{% if cls._update_attrs[1] %}
38+
{% if cls._update_attrs.optional %}
3939
Optional attributes for object update:
4040
{% for item in cls._update_attrs.optional %}
4141
- ``{{ item }}``
4242
{% endfor %}
4343
{% endif %}
44-
{% if cls._update_attrs[2] %}
44+
{% if cls._update_attrs.exclusive %}
4545
Mutually exclusive attributes for object update:
46-
{% for item in cls._update_attrs.exlusive %}
46+
{% for item in cls._update_attrs.exclusive %}
4747
- ``{{ item }}``
4848
{% endfor %}
4949
{% endif %}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy