generate-json-schema
« Back to VersTracker
Description:
Generate a JSON Schema from Sample JSON
Type: Formula  |  Latest Version: 2.6.0@0  |  Tracked Since: Dec 24, 2025
Links: Homepage  |  GitHub  |  formulae.brew.sh
Stars: 1,067  |  Forks: 134  |  Language: JavaScript  |  Category: Developer tools
Tags: json schema generator cli developer-tools
Install: brew install generate-json-schema
About:
Generate-json-schema is a command-line tool that automatically creates JSON Schema definitions from sample JSON data. It analyzes the structure and data types of your JSON input to produce a standards-compliant schema. This streamlines API documentation and validation setup by eliminating the need for manual schema drafting.
Key Features:
  • Automatic schema inference from JSON samples
  • Support for nested objects and arrays
  • Command-line interface for easy integration
  • Generates draft-04 compliant schemas
Use Cases:
  • Generating validation rules for API endpoints
  • Creating documentation for JSON-based configurations
  • Bootstrapping TypeScript interfaces from JSON examples
Alternatives:
  • quicktype – More comprehensive, supports multiple languages but heavier
  • json-schema-generator – Similar functionality, different implementation approach
Version History
Detected Version Rev Change Commit
Dec 24, 2025 9:55pm 2.6.0 0 VERSION_BUMP 03b574de
Nov 10, 2024 4:33pm 0 VERSION_BUMP 174712ee