aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sec_certs/serialization/schemas/fips_dataset.json
blob: f9a5caa6eeca004c9b86aa0e2bf8ea8764eaa17d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "http://sec-certs.org/schemas/fips_dataset.json",
  "title": "FIPS 140 Dataset",
  "description": "Schema for a FIPS 140 dataset.",
  "type": "object",
  "properties": {
    "_type": {
      "const": "sec_certs.dataset.fips.FIPSDataset"
    },
    "state": {
      "type": "object",
      "properties": {
        "_type": {
          "const": "sec_certs.dataset.dataset.Dataset.DatasetInternalState"
        },
        "meta_sources_parsed": {
          "type": "boolean"
        },
        "artifacts_downloaded": {
          "type": "boolean"
        },
        "pdfs_converted": {
          "type": "boolean"
        },
        "auxiliary_datasets_processed": {
          "type": "boolean"
        },
        "certs_analyzed": {
          "type": "boolean"
        }
      },
      "title": "Dataset internal state"
    },
    "timestamp": {
      "type": "string",
      "format": "date-time",
      "title": "Timestamp of the dataset creation"
    },
    "name": {
      "type": "string",
      "title": "Name of the dataset"
    },
    "description": {
      "type": "string",
      "title": "Description of the dataset"
    },
    "n_certs": {
      "type": "integer",
      "minimum": 0,
      "title": "Number of certificates in the dataset"
    },
    "certs": {
      "type": "array",
      "items": {
        "$ref": "fips_certificate.json#"
      },
      "title": "List of certificates in the dataset"
    }
  },
  "additionalProperties": false
}