-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update CompatibilityDate in JSON Schema to contain a list of known da…
…tes (#1432) ### What This PR updates the MBS JSON Schema so that its definition of CompatibilityDate contains a list of known compatibility dates. The type still allows any date as well. This change ensures that every time a new CompatibilityDate is added, the JSON Schema changes, which automatically creates a PR to the CLI repo, so they know a new date has been added, so that they can evaluate and respond to that. ### How The code that maps OpenDD `Flag`s to `CompatibilityDate`s was moved from MBS to the `compatibility` crate, and then used during JSON Schema formation to generate the JSON Schema enum list of dates. V3_GIT_ORIGIN_REV_ID: e67dad2aa10e5e74613aa1f80c3972753bc9a576
- Loading branch information
1 parent
4d514b7
commit 4df58b5
Showing
5 changed files
with
103 additions
and
15 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
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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
mod compatibility_date; | ||
pub use compatibility_date::CompatibilityDate; | ||
pub use compatibility_date::{ | ||
get_compatibility_date_for_flag, new_compatibility_date, CompatibilityDate, | ||
OLDEST_COMPATIBILITY_DATE, | ||
}; | ||
|
||
mod config; | ||
pub use config::{ | ||
new_compatibility_date, CompatibilityConfigV1, CompatibilityConfigV2, CompatibilityError, | ||
}; | ||
pub use config::{CompatibilityConfigV1, CompatibilityConfigV2, CompatibilityError}; |