Script
A schema that is used to validate a part of Laboperator workflow templates.
Defines a field of type script. The result of the script evaluation determines the field's value. See the Script schema for more information on writing expressions and examples.
| typerequired | string must be:  script  | 
|---|---|
| scriptrequired | reference ScriptThe script will be evaluated to determine the value of the field whenever it is accessed.  | 
| readOnly | boolean constant: true Script fields are always read-only as their value is calculated.  | 
| resultrequired | object or (reference or reference or reference or reference) A schema to validate the returned value of the script. Examples:  | 
Examples:
type: script
script: (weight + 10) / 2
result:
  type: quantity
  unit: mg
Where is this used?
Other schemas that have a reference ($ref) to this schema.
No references found.