Add fastjsonschema, local schemas#276
Merged
jonhealy1 merged 14 commits intoStacLabs:mainfrom Apr 27, 2026
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a new high-performance validation pathway to the STAC Validator CLI by introducing a fast subcommand backed by fastjsonschema and a multi-tier schema caching approach, along with documentation and packaging updates.
Changes:
- Added
FastValidatorimplementation and newstac-validator fastClick command. - Added a new pytest suite covering basic
FastValidatorbehavior and CLI-output modes. - Updated packaging/docs/changelog metadata (including a distribution rename and new Dependabot config).
Reviewed changes
Copilot reviewed 8 out of 9 changed files in this pull request and generated 11 comments.
Show a summary per file
| File | Description |
|---|---|
stac_validator/fast_validator.py |
Implements the fast validation engine, schema fetch/caching, and jsonschema fallback. |
stac_validator/stac_validator.py |
Registers the new fast Click subcommand and options. |
tests/test_fast_validator.py |
Adds tests for FastValidator correctness, output modes, and error cases. |
pyproject.toml |
Adds fastjsonschema, adjusts optional-deps layout, and renames the distribution / adds a second console script. |
README.md |
Documents the new fast command and updates installation instructions. |
CHANGELOG.md |
Adds v4.2.0 release notes for the fast validator. |
LICENSE |
Adds an additional copyright line. |
.gitignore |
Ignores schema cache artifacts. |
.github/dependabot.yml |
Introduces Dependabot configuration for pip and GitHub Actions. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
stac-validator fastcommand for ultra-high performance validation usingfastjsonschema.jsonschemavalidation.local_schemas/.schemasto support offline validation and eliminate network latency.jsonschemafor complex schemas that fail to compile underfastjsonschema(e.g., Item Assets extension).--verbose(-v) and--quiet(-q) support to thefastcommand for configurable output density.Checklist
README.mdto reflect any new environment variables, configuration changes, or breaking updates.AI tool usage