Skip to content

METAFILES object format confusion #134

Closed

Description

@jku

spec defines METAFILES object format as

 { METAPATH : {
       "version" : VERSION,
       ("length" : LENGTH, |
        "hashes" : HASHES) }
   , ...
 }

The text makes it clear that both length and hashes are optional (and not dependent on each other) but the construct (name:value, | name:value) seems to imply that exactly one of these should be specified: this is how DELEGATIONS uses the same construct.

Object format should maybe be changed to

 { METAPATH : {
       "version" : VERSION,
       ("length" : LENGTH,)
       ("hashes" : HASHES) }
   , ...
 }

or is this is a misunderstanding of the definition format?

Activity

  1. joshuagl commented on Nov 30, 2020

    @joshuagl
    Member

    Thanks for reporting this @jku, your description matches my understanding of the spec. Would you mind submitting a patch to make the suggested change to the format for METAFILES object?

  2. trishankatdatadog commented on Nov 30, 2020

    @trishankatdatadog
    Contributor

    Thanks @jku! I was wondering the same thing reading the spec recently. Great observation!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions