Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Validate spec_version during initialization
Even though version strings like "2.0.0-rc.2" or "1.0.0-beta" are valid strings in semantic versioning format, in TUF we never needed to add letters for our specification number. That's why I validate that: spec_version is a . separated string and when split it has a length of 3 and that each of the three elements is a number. Also, I check that the given spec_version is supported against the tuf code spec version. Signed-off-by: Martin Vrachev <[email protected]>
- Loading branch information