-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: redefine model versioning enums (#44)
Problem: The existing `SchemaVersion` enum has become ambiguous. It means both the Open Job Description revision (e.g. "v2023_09") and the template specification versions (e.g. "jobtemplate-2023-09"). Originally, the job template version and the spec revision were synonmous so a single enum made sense. However, we now have multiple template kinds in a revision ('jobtemplate-2023-09' and 'environment-2023-09'), so things like the special 'version' field of a model class are now ambiguous. Solution: Split `SchemaVersion` in to two separate enums: TemplateSpecificationVersion, and RevisionVersion. The former is for the 'specificationVersion' fields of templates, and the later is for the specific revision of the specification. I've also changed the 'version' field to 'revision' in all model classes. **BREAKING CHANGE** - The SchemaVersion enum has been removed. Please use TemplateSpecificationVersion or SpecificationRevision in its place. Signed-off-by: Daniel Neilson <53624638+ddneilson@users.noreply.github.com>
- Loading branch information
Showing
10 changed files
with
158 additions
and
108 deletions.
There are no files selected for viewing
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
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
Oops, something went wrong.