@radzor/data-validator
Validate data against JSON Schema definitions or custom rule sets. Supports schema registration, type coercion, detailed error reporting, and composable validation pipelines for API inputs, form data, and LLM-generated structured output.
Data & Databasev0.1.0typescriptpythonUniversalvalidationschemajson-schemadatatype-checkingcoercionformsby Radzor
Install
View source on GitHub →$npx radzor@latest add data-validator
⚠ Constraints: Pure computation — no network calls, no API keys. Implements a subset of JSON Schema (type, required, properties, items, minimum, maximum, minLength, maxLength, pattern, enum). Not a full JSON Schema validator.
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| coerceTypes | boolean | false | When true, attempt to coerce values to the expected type (e.g. string '42' → number 42). |
| allErrors | boolean | true | When true, collect all errors instead of stopping at the first one. |
coerceTypesboolean
When true, attempt to coerce values to the expected type (e.g. string '42' → number 42).
default: false
allErrorsboolean
When true, collect all errors instead of stopping at the first one.
default: true
Outputs
| Name | Type | Description |
|---|