xref: /aosp_15_r20/external/spdx-tools/docs/tvloader-assumptions.md (revision ba677afa8f67bb56cbc794f4d0e378e0da058e16)
1SPDX-License-Identifier: CC-BY-4.0
2
3The tag-value file loader in `package tvloader` makes the following assumptions:
4
5Document Creation Info
6----------------------
7* The Document Creation Info section will always come first, and be completed
8  first. Although the spec may not make this explicit, it appears that this is
9  the intended format. Unless it comes first, the parser will not be able to
10  confirm what version of the SPDX spec is being used. And, "SPDXID:" tags are
11  used for not just the Document Creation Info section but also for others (e.g.
12  Packages, Files).
13
14Relationship
15------------
16* Relationship sections will begin with the "Relationship" tag.
17
18Annotation
19----------
20* Annotation sections will begin with the "Annotator" tag.
21
22Other License Info
23------------------
24* Other License sections will begin with the "LicenseID" tag.
25
26* Any Other License section, if present, will come later than the Document
27  Creation Info section and after any Package, File and Snippet sections.
28
29Review
30------
31* Review sections will begin with the "Reviewer" tag.
32
33* Any Review section, if present, will come later than the Document Creation
34  Info section and after any Package, File, Snippet, and Other License sections.
35