Type Definitions
In some cases you may wish to reuse a type definition.
root: Wall
Wall:
material_inside: WallMaterial
material_outside: WallMaterial
types:
WallMaterial:
type: choice
constraint: one
widget: dropdown
options:
- Plywood
- Plating
The structure for defining a new type is the same as the field structure.
You can also override parameters when using a custom type:
Wall:
material_inside: WallMaterial
material_outside:
type: WallMaterial
widget: radio
Overriding custom type parameters is available from
> 0.4.0
version onward.