New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@comment-labs/schema-validator

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@comment-labs/schema-validator

CLI for validating JSON, YAML, and TOML files against JSON Schema

latest
npmnpm
Version
1.0.0-beta.3
Version published
Maintainers
1
Created
Source

@comment-labs/schema-validator

CLI tool for validating JSON, YAML, and TOML files against JSON Schema.

Installation

pnpm add -D @comment-labs/schema-validator

Usage

Validate files in your project:

npx schema-validator [files-or-folders...]

If no paths are provided, the current working directory is used.

Options

  • --add-recommended - Save recommended schema hints into files that lack one
  • --update-recommended - Replace existing schema hints with current recommendations
  • --reporter <cli|github> - Output style (default: cli, auto-detects GitHub Actions)
  • --github-actions - Shortcut for --reporter github
  • -h, --help - Show help

GitHub Actions

The validator automatically detects GitHub Actions and outputs annotations:

- name: Validate schemas
  run: npx schema-validator --github-actions

Supported File Types

  • JSON (with JSONC support)
  • YAML (.yaml, .yml)
  • TOML (.toml)

License

Apache-2.0

FAQs

Package last updated on 11 Sep 2026

Related posts