Skip to content

Commit 1e58577

Browse files
author
Jamie Hannaford
committed
handle itemSchema error
1 parent f7940c5 commit 1e58577

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

doc/api-docs/template/sub_param_macros.twig

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,12 @@
2626
{{ _self.iterate_sub_params(sub_param.properties, 'false', full_name) }}
2727
{% endif %}
2828
{% elseif sub_param.type == 'array' %}
29-
{% set subType = sub_param.itemSchema.type %}
30-
{% set type = 'array of ' ~ subType ~ 's' %}
29+
{% if sub_params.itemSchema is null %}
30+
{% set type = 'array' %}
31+
{% else %}
32+
{% set subType = sub_param.itemSchema.type %}
33+
{% set type = 'array of ' ~ subType ~ 's' %}
34+
{% endif %}
3135
{% elseif parent_is_array == 'true' %}
3236
{% set render = 'false' %}
3337
{% endif %}

0 commit comments

Comments
 (0)