mirror of
https://github.com/theupdateframework/python-tuf
synced 2026-05-24 10:08:28 +00:00
Add specification version to TIMESTAMP_SCHEMA
It was excluded from the Timestamp schema definition in error. In the process of making metadata writing use the Timestamp schema strictly, this bug was discovered. Metadata previously written included specification version, but the schema check did not. Signed-off-by: Sebastien Awwad <sebastien.awwad@gmail.com>
This commit is contained in:
parent
b4d274f527
commit
fca27122ef
1 changed files with 1 additions and 0 deletions
|
|
@ -345,6 +345,7 @@
|
|||
TIMESTAMP_SCHEMA = SCHEMA.Object(
|
||||
object_name = 'TIMESTAMP_SCHEMA',
|
||||
_type = SCHEMA.String('timestamp'),
|
||||
spec_version = SPECIFICATION_VERSION_SCHEMA,
|
||||
version = securesystemslib.formats.METADATAVERSION_SCHEMA,
|
||||
expires = securesystemslib.formats.ISO8601_DATETIME_SCHEMA,
|
||||
meta = securesystemslib.formats.FILEDICT_SCHEMA)
|
||||
|
|
|
|||
Loading…
Reference in a new issue