Open martinheidegger opened 5 years ago
As a weakly held, somewhat subjective opinion, I think we should err on the side of "keeping it simple" by not specifying maximum lengths for every string and field at this level of the format/protocol (AKA, fields inside protobuf). We could add a statement like "use good judgement".
A couple unstructured thoughts:
dataStructureType
is MIME types, especially when embedded in HTTP headers as Content-Type
, which as far as I know has no maximum length.
When reading DEP-0007 I noticed that the
dataStructureType
can be any string. (of varint data-size: big) However: most file signatures are fixed in size, which makes me wonder if it wouldn't be a good idea to amend a limit of "how big the size can be" in order to prevent the downloading of a lot of data before checking if the data even fits the structure.