Skip to content

Decide on extent of OOP in metadata model #1133

@lukpueh

Description

@lukpueh

Should we create classes for dictionary attributes of inner metadata classes (Targets/Snapshot/Timestamp/Root)?

Con: Seems a bit over-engineered, removes the light-footedness that comes with Python dictionaries

Pro: Makes our use of OOP more consistent.
Why would we use classes for Metadata/Signed/Targets/Snapshot, etc. but not for the inner dicts? (see #1112)

Pro: Makes it easier to validate formats, if complex data structures are defined by classes and simple data types use type annotations. (see #1130)

Metadata

Metadata

Assignees

No one assigned

    Labels

    decision recordOutcome of this discussion should be tracked in a decision recorddiscussionDiscussions related to the design, implementation and operation of the projectdocumentationDocumentation of the project as well as procedural documentation

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions