Merge branch 'task/JAL-3246_local_getdown_files' into develop
[jalview.git] / examples / biojson-doc / tests / fstab.json
1 [
2     {
3         "schema": {
4             "id": "http://some.site.somewhere/entry-schema#",
5             "$schema": "http://json-schema.org/draft-04/schema#",
6             "description": "schema for an fstab entry",
7             "type": "object",
8             "required": [ "storage" ],
9             "properties": {
10                 "storage": {
11                     "type": "object",
12                     "oneOf": [
13                         { "$ref": "#/definitions/diskDevice" },
14                         { "$ref": "#/definitions/diskUUID" },
15                         { "$ref": "#/definitions/nfs" },
16                         { "$ref": "#/definitions/tmpfs" }
17                     ]
18                 },
19                 "fstype": {
20                     "enum": [ "ext3", "ext4", "btrfs" ],
21                     "default": "ext3"
22                 },
23                 "options": {
24                     "type": "array",
25                     "minItems": 1,
26                     "items": { "type": "string" },
27                     "uniqueItems": true
28                 },
29                 "readonly": { "type": "boolean" }
30             },
31             "definitions": {
32                 "diskDevice": {
33                     "properties": {
34                         "type": { "enum": [ "disk" ] },
35                         "device": {
36                             "type": "string",
37                             "pattern": "^/dev/[^/]+(/[^/]+)*$"
38                         }
39                     },
40                     "required": [ "type", "device" ],
41                     "additionalProperties": false
42                 },
43                 "diskUUID": {
44                     "properties": {
45                         "type": { "enum": [ "disk" ] },
46                         "label": {
47                             "type": "string",
48                             "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
49                         }
50                     },
51                     "required": [ "type", "label" ],
52                     "additionalProperties": false
53                 },
54                 "nfs": {
55                     "properties": {
56                         "type": { "enum": [ "nfs" ] },
57                         "remotePath": {
58                             "type": "string",
59                             "pattern": "^(/[^/]+)+$"
60                         },
61                         "server": {
62                             "type": "string",
63                             "oneOf": [
64                                 { "format": "host-name" },
65                                 { "format": "ipv4" },
66                                 { "format": "ipv6" }
67                             ]
68                         }
69                     },
70                     "required": [ "type", "server", "remotePath" ],
71                     "additionalProperties": false
72                 },
73                 "tmpfs": {
74                     "properties": {
75                         "type": { "enum": [ "tmpfs" ] },
76                         "sizeInMB": {
77                             "type": "integer",
78                             "minimum": 16,
79                             "maximum": 512
80                         }
81                     },
82                     "required": [ "type", "sizeInMB" ],
83                     "additionalProperties": false
84                 }
85             }
86         }
87     }]