xref: /aosp_15_r20/external/pigweed/seed/seed_metadata_schema.json (revision 61c4878ac05f98d0ceed94b57d316916de578985)
1*61c4878aSAndroid Build Coastguard Worker{
2*61c4878aSAndroid Build Coastguard Worker  "description": "Schema for //seed/seed_metadata.json.",
3*61c4878aSAndroid Build Coastguard Worker  "type": "object",
4*61c4878aSAndroid Build Coastguard Worker  "patternProperties": {
5*61c4878aSAndroid Build Coastguard Worker    "[0-9]{4}": {
6*61c4878aSAndroid Build Coastguard Worker      "description": "The metadata for a single SEED. Each top-level key should be a 4-digit number associated to a SEED.",
7*61c4878aSAndroid Build Coastguard Worker      "type": "object",
8*61c4878aSAndroid Build Coastguard Worker      "properties": {
9*61c4878aSAndroid Build Coastguard Worker        "title": {
10*61c4878aSAndroid Build Coastguard Worker          "description": "The title of the SEED.",
11*61c4878aSAndroid Build Coastguard Worker          "type": "string"
12*61c4878aSAndroid Build Coastguard Worker        },
13*61c4878aSAndroid Build Coastguard Worker        "status": {
14*61c4878aSAndroid Build Coastguard Worker          "description": "The status of the SEED.",
15*61c4878aSAndroid Build Coastguard Worker          "type": "string",
16*61c4878aSAndroid Build Coastguard Worker          "enum": [
17*61c4878aSAndroid Build Coastguard Worker            "Draft",
18*61c4878aSAndroid Build Coastguard Worker            "Intent Approved",
19*61c4878aSAndroid Build Coastguard Worker            "Open For Comments",
20*61c4878aSAndroid Build Coastguard Worker            "Last Call",
21*61c4878aSAndroid Build Coastguard Worker            "Accepted",
22*61c4878aSAndroid Build Coastguard Worker            "Rejected",
23*61c4878aSAndroid Build Coastguard Worker            "Deprecated",
24*61c4878aSAndroid Build Coastguard Worker            "Superseded",
25*61c4878aSAndroid Build Coastguard Worker            "On Hold",
26*61c4878aSAndroid Build Coastguard Worker            "Meta"
27*61c4878aSAndroid Build Coastguard Worker          ]
28*61c4878aSAndroid Build Coastguard Worker        },
29*61c4878aSAndroid Build Coastguard Worker        "date": {
30*61c4878aSAndroid Build Coastguard Worker          "description": "The date when the SEED was created, in YYYY-MM-DD format.",
31*61c4878aSAndroid Build Coastguard Worker          "type": "string"
32*61c4878aSAndroid Build Coastguard Worker        },
33*61c4878aSAndroid Build Coastguard Worker        "cl": {
34*61c4878aSAndroid Build Coastguard Worker          "description": "The change where the SEED is being drafted and discussed. E.g. 12345 (representing pwrev.dev/12345).",
35*61c4878aSAndroid Build Coastguard Worker          "type": "string"
36*61c4878aSAndroid Build Coastguard Worker        },
37*61c4878aSAndroid Build Coastguard Worker        "authors": {
38*61c4878aSAndroid Build Coastguard Worker          "description": "The names of the SEED author(s).",
39*61c4878aSAndroid Build Coastguard Worker          "type": "array",
40*61c4878aSAndroid Build Coastguard Worker          "items": {
41*61c4878aSAndroid Build Coastguard Worker            "type": "string",
42*61c4878aSAndroid Build Coastguard Worker            "description": "The first and last name of a SEED author."
43*61c4878aSAndroid Build Coastguard Worker          }
44*61c4878aSAndroid Build Coastguard Worker        },
45*61c4878aSAndroid Build Coastguard Worker        "facilitator": {
46*61c4878aSAndroid Build Coastguard Worker          "description": "The first and last name of the facilitator for this SEED.",
47*61c4878aSAndroid Build Coastguard Worker          "type": "string"
48*61c4878aSAndroid Build Coastguard Worker        }
49*61c4878aSAndroid Build Coastguard Worker      },
50*61c4878aSAndroid Build Coastguard Worker      "required": [
51*61c4878aSAndroid Build Coastguard Worker        "title",
52*61c4878aSAndroid Build Coastguard Worker        "status",
53*61c4878aSAndroid Build Coastguard Worker        "date",
54*61c4878aSAndroid Build Coastguard Worker        "cl",
55*61c4878aSAndroid Build Coastguard Worker        "authors",
56*61c4878aSAndroid Build Coastguard Worker        "facilitator"
57*61c4878aSAndroid Build Coastguard Worker      ],
58*61c4878aSAndroid Build Coastguard Worker      "additionalProperties": false
59*61c4878aSAndroid Build Coastguard Worker    }
60*61c4878aSAndroid Build Coastguard Worker  },
61*61c4878aSAndroid Build Coastguard Worker  "additionalProperties": false
62*61c4878aSAndroid Build Coastguard Worker}
63