What JSON Schema is
A machine-readable contract for JSON data
JSON Schema describes the allowed structure, types, required properties, value ranges, patterns, and other constraints for a JSON document. UtilityDock uses Ajv to compile the supplied draft-07 schema and validate the document against every rule.
Why schema validation matters
Catch incompatible data before another system does
- Confirm required fields exist before an import
- Catch strings where an API expects numbers or booleans
- Reject unexpected properties in strict configurations
- Validate identifiers, emails, dates, and URI formats
- Review every failing path instead of only the first error
- Attach a portable validation report to a review
API testing
Check request and response payloads against a contract
Paste a sample API payload and its draft-07 schema to verify types, required fields, arrays, nested objects, and supported formats. All errors are collected in one run, making it easier to repair a test fixture without repeated validation cycles.
Configuration validation
Verify settings without exposing sensitive values
Validate local configuration exports before deployment while keeping both files on the device. UtilityDock does not apply defaults, coerce types, remove fields, or otherwise mutate the parsed document.
Examples
Schema rules produce clear paths and messages
| Document value | Schema rule | Result |
|---|---|---|
{"age":17} | {"properties":{"age":{"minimum":18}}} | /age must be >= 18 |
{"email":"invalid"} | {"properties":{"email":{"format":"email"}}} | /email must match format |
{} | {"required":["name"]} | /name is required |
Data Toolkit
Continue with every UtilityDock JSON workflow
FAQ
Questions about JSON Schema validation
Does UtilityDock upload my document or schema?
No. Your files never leave your computer. Parsing, schema compilation, validation, error display, and report creation all happen locally inside your browser.
Which JSON Schema draft does Version 1 support?
Version 1 uses Ajv configured for JSON Schema draft-07. A schema without a $schema declaration is evaluated as draft-07 and reported with a warning.
Does validation change my JSON data?
No. UtilityDock does not coerce types, apply defaults, remove properties, or rewrite either input.
Why can a document pass when a property is missing?
The properties keyword describes rules for properties that exist. Add the property name to the schema's required array when its presence is mandatory.
Are common string formats validated?
Yes. The validator includes Ajv's official formats companion for common draft-07 formats such as email, date, time, hostname, and URI.