-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjson-schem.json
135 lines (134 loc) · 3.27 KB
/
json-schem.json
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://www.abcd.com/schema.json",
"title": "Configuration Schema",
"description": "Configuration Schema",
"type": "object",
"required": [
"Properties",
"Components"
],
"properties": {
"Properties": {
"description": "Primary properties identifying the Configuration.",
"type": "object",
"required": [
"Configuration Name",
"Configuration Description",
"Configuration Version"
],
"properties": {
"Configuration Name": {
"description": "Name of the Configuration.",
"type": "string"
},
"Configuration Description": {
"description": "Description of the Configuration.",
"type": "string"
},
"Configuration Type": {
"description": "The Type used to categorise this Configuration.",
"type": "string",
"enum": [
"General",
"Complex"
],
"default": "General"
},
"Configuration Version": {
"description": "Version number of this Configuration, in the format 'major.minor.revision'.",
"type": "string"
},
"Configuration Author": {
"description": "Author of this Configuration.",
"type": "string"
},
"Helpdesk Number": {
"description": "Helpdesk number for this Configuration.",
"type": "string"
}
}
},
"Components": {
"description": "The Components in this Configuration.",
"type": "object",
"properties": {
"Native": {
"description": "Native Components",
"type": "array",
"items": {
"type": "object",
"required": [
"Name",
"ID",
"Connection"
],
"properties": {
"ID": {
"type": "string",
"description": "This is the ID by which other components of this Configuration will reference this Component."
},
"Name": {
"type": "string"
},
"Connection": {
"type": "object",
"description": "The Connection Parameters for this Component",
"properties": {
"IPID": {
"type": "number",
"description": "The Component's IPID, in decimal.",
"maximum": 255,
"minimum": 3
},
"IP Address": {
"type": "string",
"description": "IP address or hostname of the Component."
}
}
}
}
}
},
"IP": {
"description": "Components controlled over IP",
"type": "array",
"uniqueItems": true,
"items": {
"type": "object",
"required": [
"Name",
"ID"
],
"properties": {
"ID": {
"type": "string",
"description": "This is the ID by which other components of this Configuration File will reference this Component."
},
"Name": {
"type": "string"
},
"Model": {
"type": "string"
},
"Connection": {
"type": "object",
"description": "The Connection Parameters for this Component",
"properties": {
"IP Address": {
"type": "string",
"description": "IP address or hostname of the Component."
},
"IP Port": {
"type": "number",
"description": "IP Port for connecting to the Component"
}
}
}
}
}
}
}
}
}
}