ParamDefinition
A param you write. An array declares its element under item, an object its fields, and a
one_of the ways it may be written under one_of.
read_when is a condition on another param. While it does not hold, this param is
ignored: not its rules, not even being required. A block often keeps a value it no longer
reads, and this is how you tell that apart from a value that is wrong.
- fieldsType: array of ParamDefinitionrequiredProperties: 12
The params an object param is made of. Empty on a param that is not an object.
- hasType: boolean
_default requiredWhether a value is applied when the param is absent. It answers what
defaultalone cannot: a param whose default isnull,0or an empty list is not a param without one. - nameType: stringrequired
- oneType: array of ParamDefinition
_of requiredProperties: 12The shapes this value may take, when it may take more than one — a condition that is either an object or a bare string, say. Each is a param in its own right.
A value matching none of them is refused with
param_no_matching_shape. Empty unlesstypeisone_of. - readType: array of ParamSelector
_when requiredProperties: 5The conditions under which the param is read, written in the same vocabulary as a variant's
selectorand evaluated the same way. Every one of them has to hold. Empty on a param that is always read, which is most of them. - requiredType: booleanrequired
- rulesType: array of ParamRulerequiredProperties: 2
Constraints beyond the type. Only rules that can be stated declaratively appear here; rules that depend on the brand's own data, such as whether an integration credential belongs to it, are enforced on write and reported as violations.
- typeType: ParamTypeenumrequired
The kind of value a param takes.
one_ofis the one that is not a shape of its own: it says the value may be written in more than one way, and the ways are underone_of.valuesstringintegernumberbooleanarrayobjectone_of - default
The value used when the block is placed and the param is not given. Absent when
has_defaultis false. - descriptionType: string
- itemType: ParamElementProperties: 5
What one element of an array param is. Present only on an array param.
- titleType: string