SocialluxSociallux
Toggle navigation menu
Docs navigationv

Primitive

data.validateType

BETA

Short name: validateType

Version: 1.0.0

Validate that a value matches an expected primitive classifier.

Back to primitive library

Inputs

KeyTypeRequiredDescription
expectedstringtrueExpected type classifier: string, number, boolean, object, array, date, or objectId.
valueanyfalseValue to validate against the expected type classifier.

Outputs

KeyTypeRequiredDescription
okbooleanfalseTrue when value matches expected classifier.
reasonstringfalseFailure reason when ok is false. Empty string when ok is true.