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