summaryrefslogtreecommitdiff
path: root/spec/fixtures/api/schemas/internal/pages/lookup_path.json
blob: 9d81ea495f12e92ee2c14f55ee4303dc01c08480 (plain)
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
{
  "type": "object",
  "required": [
    "project_id",
    "https_only",
    "access_control",
    "source",
    "prefix"
  ],
  "properties": {
    "project_id": { "type": "integer" },
    "https_only": { "type": "boolean" },
    "access_control": { "type": "boolean" },
    "source": { "type": "object",
      "required": ["type", "path"],
      "properties" : {
        "type": { "type": "string", "enum": ["file", "zip"] },
        "path": { "type": "string" },
        "global_id": { "type": "string" },
        "sha256": { "type": "string" },
        "file_size": { "type": "integer" },
        "file_count": { "type": ["integer", "null"] }
      },
      "additionalProperties": false
    },
    "prefix": { "type": "string" }
  },
  "additionalProperties": false
}