-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We now include a `"version": "X.Y.Z"` entry in the top-level JSON map that gets generated for each MIR JSON file, where `X.Y.Z` represents the version of the JSON schema that is used to generate the file. Going forward, any changes to the JSON schema will be accompanied by a corresponding schema version bump according to the version bumping principles laid out in [Semantic Versioning](https://semver.org/). Fixes #45.
- Loading branch information
1 parent
131980a
commit 31486ad
Showing
9 changed files
with
59 additions
and
12 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
The following document describes the changes to the JSON schema that | ||
`mir-json`–produced files adhere to. (This document should not be interpreted | ||
as a changelog for the code in the `mir-json` tools themselves, which are | ||
versioned separately.) | ||
|
||
## 0.1.0 | ||
|
||
Initial schema version. |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
use semver::Version; | ||
|
||
/// The version of the JSON schema that `mir-json` follows. This is intended for | ||
/// use by downstream tools to quickly determine if they are ingesting a MIR | ||
/// JSON file that is compatible with the version of the schema that they are | ||
/// expecting. | ||
/// | ||
/// This version number follows [Semantic Versioning](https://semver.org/). As | ||
/// such, an update to the major version constitutes a backwards-incompatible | ||
/// change to the JSON schema, and an update to the minor version constitutes | ||
/// a backwards-compatible addition to the schema. (The patch number is not | ||
/// currently used.) | ||
pub const SCHEMA_VER: Version = Version::new(1, 0, 0); |