Skip to main content

Variable

A variable representing a name / value pair.

Properties#

Name@idTypeDescriptionInherited from
nameschema:namestringThe name of the variable. See note 1.Variable
typeschema:type'Variable', 'Parameter'The name of the type.Entity
idschema:idstringThe identifier for this item.Entity
isReadonlyschema:readonlyValuebooleanWhether or not a property is mutable. Default is false. See note 2.Variable
metastencila:metaobjectMetadata associated with this item.Entity
validatorstencila:validatorValidatorTypesThe validator that the value is validated against.Variable
valueschema:valueNodeThe value of the variable.Variable

Related#

Notes#

  1. name : This regex allows for snake_case and camelCase names but excludes PascalCase for names.
  2. isReadonly : If isReadonly is true and value is defined then changes to value should not be allowed.
  3. Available as JSON-LD.
  4. Available as JSON Schema.
  5. This documentation was generated from Variable.schema.yaml.