Given rendering properties of SchemaObjectWhenrequired array of SchemaObject contains property name
Then pass boolean parameter to schema-prop template.
The same flow is applied for nested parameter objects in schema-prop template
Implementation
Add contains Handlebars helper to check that if array contains a specific element
Update schema.prop.html to use boolean required parameter to render (Required) label
Update all usages of schema.prop.html to calculate required parameter from current context
Context
This PR fixes #27
Idea
Given rendering properties of
SchemaObject
Whenrequired
array of SchemaObject contains property name Then pass boolean parameter toschema-prop
template.The same flow is applied for nested parameter objects in
schema-prop
templateImplementation
contains
Handlebars helper to check that if array contains a specific elementschema.prop.html
to use booleanrequired
parameter to render(Required)
labelschema.prop.html
to calculaterequired
parameter from current context