Combinations
This section contains examples of combining schemas and layout options using conditions and higher level keywords than simple properties.
One of
A oneOf keyword on an object property is transformed into a select to chose the active subschema.
All of
A allOf keyword on an object property is transformed into an array of sections.
Layout "if" keyword
You can use the layout.if expression to apply a condition for the rendering of a property. Please not that this is not a JSON schema semantic and is only used for the layout. If you need to apply a condition based on the JSON schema semantics, only a rendering tool.
Layout switch
You can use a layout switch expression to apply a different layout based on some condition.
Dependent schemas
The JSON schema dependentSchemas keyword is interpreted.
If/then/else
The JSON schema if/then/else keywords are interpreted correctly to conditionnally render some content. Compared to the layout.if keyword this has the advantage of being purely based on JSON schemas semantics.
Support of recursion
Some recursion based on the $ref keyword is supported.
Warning: recursion can easily create infinite loops.