Skip to content

Add JSON schema 2020-12 single file output#5

Merged
mbarlow12 merged 2 commits into
mainfrom
claude/add-json-schema-output-018NJLPn4TRgPzTjtLx9k8Xu
Nov 17, 2025
Merged

Add JSON schema 2020-12 single file output#5
mbarlow12 merged 2 commits into
mainfrom
claude/add-json-schema-output-018NJLPn4TRgPzTjtLx9k8Xu

Conversation

@mbarlow12
Copy link
Copy Markdown
Owner

Add option to generate a single consolidated schema file that conforms to JSON Schema 2020-12 specification using $defs and $ref constructs.

Features:

  • New --single-file CLI option to enable consolidated output
  • New --single-file-name option to customize the output filename
  • Configuration support via single_file and single_file_name settings
  • Generates schema with $schema, $id, $defs structure
  • All models are organized under $defs for easy referencing
  • Comprehensive test coverage for new functionality
  • Updated documentation in README.md and CLAUDE.md

The consolidated schema uses JSON Schema 2020-12 format with:

Add option to generate a single consolidated schema file that conforms to
JSON Schema 2020-12 specification using $defs and $ref constructs.

Features:
- New --single-file CLI option to enable consolidated output
- New --single-file-name option to customize the output filename
- Configuration support via single_file and single_file_name settings
- Generates schema with $schema, $id, $defs structure
- All models are organized under $defs for easy referencing
- Comprehensive test coverage for new functionality
- Updated documentation in README.md and CLAUDE.md

The consolidated schema uses JSON Schema 2020-12 format with:
- $schema pointing to https://json-schema.org/draft/2020-12/schema
- $defs containing all model definitions
- Proper $id and metadata fields
Add comprehensive CLI tests for the single-file JSON Schema output feature:
- Test basic single-file mode
- Test custom filename option
- Test multiple modules consolidation
- Test verbose output with single-file mode

This increases test coverage from 83% to 89%, exceeding the required 85% threshold.

Also includes auto-formatting fixes from ruff.
@mbarlow12 mbarlow12 merged commit 022204c into main Nov 17, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants