python-tuf/tuf/api
Martin Vrachev bf12e7565f Metadata API: change meta type in Timestamp
In Timestamp, the only valid "meta" value is the dictionary representing
meta information for the snapshot file. This makes the API unnecessarily
complicated and requires validation that only information about snapshot
is available inside "meta".
Together with the python-tuf maintainers, we decided that snapshot meta
information will not be represented by a "meta" dictionary but instead
by a MetaFile instance and with this it will diverge from the
specification.
Additionally, to prevent confusion, I will rename the "meta" attribute
to "snapshot_meta" as this attribute will be related only to meta
information about snapshot.

This decision is coherent with ADR9 and the rationale
behind it is to provide easier, safer, and direct access to the
snapshot meta information.

Signed-off-by: Martin Vrachev <mvrachev@vmware.com>
2021-09-20 14:09:38 +03:00
..
serialization Remove disable=broad-except 2021-09-01 17:41:32 +03:00
__init__.py tuf/api: Expose tuf.api as a package 2020-10-15 14:35:14 +01:00
metadata.py Metadata API: change meta type in Timestamp 2021-09-20 14:09:38 +03:00
pylintrc Metadata API/pylintrc: Use old style logging 2021-05-11 11:47:38 +03:00