Skip to content

Latest commit

 

History

History
50 lines (28 loc) · 1 KB

InputSpec.md

File metadata and controls

50 lines (28 loc) · 1 KB

@sdeverywhere/build / InputSpec

Interface: InputSpec

Describes a model input variable.

Properties

varName

varName: string

The variable name (as used in the modeling tool).


inputId

Optional inputId: string

The stable input identifier. It is recommended to set this to a value (for example, a numeric string like what plugin-config uses) that is separate from varName and is stable between two versions of the model. This way, if an input variable is renamed between two versions of the model, comparisons can still be performed between the two. If a distinct inputId is not available, plugins can infer one from varName, but note that this approach will be less resilient to renames.


defaultValue

Optional defaultValue: number

The default value for the input.


minValue

Optional minValue: number

The minimum value for the input.


maxValue

Optional maxValue: number

The maximum value for the input.