Skip to main content

Function: validateSpec()

validateSpec(input): ValidationResult

Defined in: spec/validateSpec.ts:141

Validates a raw value against the GeoVis JSON Schema and enforces cross-field referential integrity rules not expressible in the schema. Returns a discriminated union: { valid: true, spec } on success or { valid: false, errors } with human-readable diagnostic strings on failure.

Parameters

ParameterType
inputunknown

Returns

ValidationResult