json-validator_skill

This skill validates JSON files against JSON Schema, reports detailed errors, and offers auto-fix suggestions to streamline data integrity.
  • TypeScript

72

GitHub Stars

1

Bundled Files

3 weeks ago

Catalog Refreshed

2 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstart where the catalogue uses aiagentskills.

npx veilstart add skill aidotnet/moyucode --skill json-validator

  • SKILL.md930 B

Overview

This skill validates JSON files against JSON Schema, offering precise error reporting and actionable fix suggestions. It also supports formatting and minifying JSON to enforce consistent style. Use it to catch schema mismatches, type errors, missing required fields, and structural problems before runtime.

How this skill works

The validator parses your JSON and runs it through a JSON Schema validator to identify violations, type mismatches, missing properties, and pattern/enum failures. It produces line-and-column-aware error messages, suggests specific fixes (for example: add missing property, change type, correct enum value), and can optionally auto-format or minify the JSON. You can validate against a provided schema file or run a syntax-only check when no schema is supplied.

When to use it

  • Before committing JSON configuration or data files to catch schema errors early.
  • During CI checks to enforce JSON shape and types across a codebase.
  • When integrating third-party JSON APIs to validate received payloads.
  • To clean up and standardize JSON formatting across files.
  • When debugging runtime errors caused by invalid JSON structure or types.

Best practices

  • Always supply the canonical JSON Schema for the environment you target to get precise validation.
  • Run validation as part of pre-commit or CI pipelines to prevent regressions.
  • Use the formatter option to maintain consistent formatting and minimize diff noise.
  • Review suggested fixes before applying automated changes to avoid unintended data loss.
  • Combine schema validation with unit tests for complex data transformations.

Example use cases

  • Validate config.json against config-schema.json before deploying a service.
  • Lint and format a set of JSON fixtures to keep repository style consistent.
  • Validate API responses against a contract schema during integration tests.
  • Minify large JSON payloads for production upload or transmission.
  • Generate a concise error report for a malformed JSON file to share with teammates.

FAQ

It provides automated suggestions and can apply simple fixes (formatting, adding missing optional fields) but complex semantic fixes require manual review.

What happens if no schema is provided?

The tool performs syntax validation and formatting/minifying but cannot check structural rules without a schema.

Does it report exact locations of errors?

Yes. Errors include line and column references and a human-friendly message with a recommended correction.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational