maint: sync bundled schema from the spec repo#39
Merged
Conversation
Add 'make sync-schema' + scripts/sync_schema.py to refresh the bundled src/harel/data/machine.schema.json from fruwehq/harel at the matching version tag (falling back to main, or HAREL_SPEC_DIR for a local checkout) — removing the manual copy. The schema-drift test still guards that they match. The script is dependency-free (reads the version by regex; validates JSON before overwriting). Closes #38.
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.
Closes #38.
The bundled
src/harel/data/machine.schema.jsonwas a manual copy of harel's schema (I hand-copied it during the choice work). Adds tooling so it's a one-command refresh; the drift test still guards correctness.What
scripts/sync_schema.py— writes the bundled schema from harel'sschema/machine.schema.jsonat the tag matching this package's version (falling back tomain), or fromHAREL_SPEC_DIRfor a local checkout. Dependency-free (reads the version by regex, validates JSON before overwriting, no-ops when already current).make sync-schematarget.Verify
make sync-schema→ "already up to date" (fetchesv0.0.2, matches bundle);HAREL_SPEC_DIRpath works.make sync-schemarestores it byte-identical → drift passes.