Variable info as provided by the editor. Represents the state of a control during assessment and forms the basis of coding. These are referred to as "base variables" in the Verona spec.

interface VariableInfo {
    id: string;
    alias?: string;
    type: VariableType;
    format?: VariableFormat;
    multiple?: boolean;
    nullable?: boolean;
    values?: VariableValue[];
    valuePositionLabels?: valuePositionLabels[];
    valuesComplete?: boolean;
    page?: string;
}

Properties

id: string

Identifier for the variable. Must match ^[0-9a-zA-Z_]+$

alias?: string

Alternative identifier. Must match ^[0-9a-zA-Z_]+$

type: VariableType

Data type of the variable value

format?: VariableFormat

Data type format

multiple?: boolean

Can the value be of type Array? Default: false

nullable?: boolean

Can the value be null? Default: false

values?: VariableValue[]

List of possible values

valuePositionLabels?: valuePositionLabels[]

Labels of the positions if the value is of type array

valuesComplete?: boolean

Are the given values all possible values? Default: false

page?: string

Page of the unit on which the variable is located