Skip to content

Commit

Permalink
fix: mark required props in object in array (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
derberg authored Oct 30, 2020
1 parent 8e6f10f commit 30986dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion partials/schema-prop.html
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@
{% if isCirc === true %}
{{ schemaItem(pName, odd) }}
{% else %}
{{ schemaProp(p, pName, odd=(not odd), required=(prop.required() | includes(pName))) }}
{{ schemaProp(p, pName, odd=(not odd), required=(prop.items().required() | includes(pName))) }}
{% endif %}
{% endfor %}
{% endif %}
Expand Down

0 comments on commit 30986dd

Please sign in to comment.