-
Notifications
You must be signed in to change notification settings - Fork 270
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate targets and snapshot/timestamp schemas
This separation and refactoring is part of the change to make length and hashes optional for timestamp and snapshot roles. It separates FILEINFO_SCHEMA into two separate schemas: TARGETS_FILEINFO_SCHEMA and METADATA_FILEINFO_SCHEMA. The distinction is needed because as of version 1.0.1 of the tuf spec targets role has mandatory length and hashes, and snapshot and timestamp roles have a mandatory version, and optional length and hashes. That's why targets can't share the same schemas as timestamp and snapshot. Because of that schema distinction, make_fileinfo had to be too separated into make_targets_fileinfo and make_metadata_fileinfo. Signed-off-by: Martin Vrachev <mvrachev@vmware.com>
- Loading branch information
Showing
12 changed files
with
178 additions
and
97 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.