Codepackr

Syntax, Schema & Diff Validators

Validate JSON, OpenAPI, Docker, Kubernetes, regex, and more, plus compare diffs, all client-side on CodePackr.

Validators catch structural problems before they reach a build pipeline or a production system. Check JSON syntax, test JSONPath expressions against sample documents, and view CSV data in a tabular form to confirm column alignment.

OpenAPI documents and Docker or Kubernetes manifests can be validated against their respective schemas. A regex tester shows match results and capture groups for any pattern you write. Dotenv files can be formatted and checked for consistent key-value structure.

Two diff tools are included: a general text diff checker and a structural JSON diff that highlights added, removed, or changed keys rather than simple line changes.

Running validation locally means you can test private schemas or configuration files without uploading them. Use the tools to confirm a payload before you post it, or to understand why a service rejected a request.

Error messages attempt to point to the location of the problem so you can correct the source quickly. The structural JSON diff is especially helpful when two API responses look similar but differ in nested objects. Combining a validator with a formatter from the formatters suite often resolves issues that are purely presentational.

Tools in this collection

  • Diff Checker — Compare two blocks of text or code side-by-side with line difference highlights.
  • OpenAPI / Swagger Spec Viewer — Validate, parse, and inspect structural syntax and endpoint routes for OpenAPI 3.0 and Swagger API specifications.
  • Docker & Kubernetes YAML Linter — Lint, validate, and verify structural syntax for Docker Compose and Kubernetes YAML resource manifests.
  • Regex Tester — Test and debug regular expressions with interactive match grouping and flags.
  • JSON Validator — Strictly validate JSON syntax and pinpoint exact error line and column.
  • JSONPath Tester — Evaluate JSONPath queries ($..key, store.book[*]) against JSON structures.
  • CSV Viewer — Parse CSV content into an interactive, sortable, and searchable table.
  • Structural JSON Diff — Compare two JSON objects key-by-key to detect added, removed, and changed nodes.
  • dotenv Formatter & Validator — Format, sort, and validate environment variable (.env) files.