Skip to content

Commit

Permalink
handle itemSchema error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Hannaford committed Jan 19, 2016
1 parent f7940c5 commit 1e58577
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions doc/api-docs/template/sub_param_macros.twig
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,12 @@
{{ _self.iterate_sub_params(sub_param.properties, 'false', full_name) }}
{% endif %}
{% elseif sub_param.type == 'array' %}
{% set subType = sub_param.itemSchema.type %}
{% set type = 'array of ' ~ subType ~ 's' %}
{% if sub_params.itemSchema is null %}
{% set type = 'array' %}
{% else %}
{% set subType = sub_param.itemSchema.type %}
{% set type = 'array of ' ~ subType ~ 's' %}
{% endif %}
{% elseif parent_is_array == 'true' %}
{% set render = 'false' %}
{% endif %}
Expand Down

0 comments on commit 1e58577

Please sign in to comment.