From fca27122ef86715d14eb6b79b43f2ad72a330c1d Mon Sep 17 00:00:00 2001 From: Sebastien Awwad Date: Fri, 15 Mar 2019 17:16:55 -0400 Subject: [PATCH] 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 --- tuf/formats.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tuf/formats.py b/tuf/formats.py index e6d2cc78..aeeef65a 100755 --- a/tuf/formats.py +++ b/tuf/formats.py @@ -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)