Skip to content

Commit 782b242

Browse files
committed
updating smartapi specific json schema
1 parent 2c3c024 commit 782b242

File tree

1 file changed

+38
-19
lines changed

1 file changed

+38
-19
lines changed

schemas/smartapi_schema.json

Lines changed: 38 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,26 @@
55
"type": "object",
66
"description": "This is the root document object of the smartAPI definition file.",
77
"properties": {
8+
"info": {
9+
"$ref": "#/definitions/info"
10+
},
11+
"servers": {
12+
"type": "array",
13+
"items": {
14+
"$ref": "#/definitions/server"
15+
}
16+
},
817
"x-externalResources": {
918
"type": "array",
1019
"items": {
1120
"$ref": "#/definitions/externalResource"
1221
}
1322
},
14-
"info": {
15-
"$ref": "#/definitions/info"
23+
"tags": {
24+
"type": "array",
25+
"items": {
26+
"$ref": "#/definitions/tag"
27+
}
1628
},
1729
"paths": {
1830
"type": "object",
@@ -75,6 +87,9 @@
7587
}
7688
},
7789
"info": {
90+
"required": [
91+
"termsOfService"
92+
],
7893
"properties": {
7994
"x-otherContacts": {
8095
"type": "array",
@@ -97,6 +112,10 @@
97112
},
98113
"contact": {
99114
"$ref": "#/definitions/contact"
115+
},
116+
"termsOfService": {
117+
"type": "string",
118+
"format": "url"
100119
}
101120
}
102121
},
@@ -133,23 +152,6 @@
133152
}
134153
}
135154
},
136-
"Parameter": {
137-
"properties": {
138-
"x-valueType": {
139-
"type": "array",
140-
"description": "a list of semantic identifiers of the parameter from identifiers.org, e.g. [http://identifiers.org/ncbigene/]",
141-
"items": {
142-
"type": "string",
143-
"format": "url"
144-
},
145-
"uniqueItems": true
146-
},
147-
"x-parameterType": {
148-
"type": "string",
149-
"description": "Type of parameter, e.g. InputParameter, NumberOfResultsReturned, OffsetParameter, SortParameter."
150-
}
151-
}
152-
},
153155
"externalResource": {
154156
"type": "object",
155157
"additionalProperties": false,
@@ -181,6 +183,23 @@
181183
}
182184
}
183185
},
186+
"Parameter": {
187+
"properties": {
188+
"x-valueType": {
189+
"type": "array",
190+
"description": "a list of semantic identifiers of the parameter from identifiers.org, e.g. [http://identifiers.org/ncbigene/]",
191+
"items": {
192+
"type": "string",
193+
"format": "url"
194+
},
195+
"uniqueItems": true
196+
},
197+
"x-parameterType": {
198+
"type": "string",
199+
"description": "Type of parameter, e.g. InputParameter, NumberOfResultsReturned, OffsetParameter, SortParameter."
200+
}
201+
}
202+
},
184203
"responseValueType": {
185204
"required": [
186205
"path",

0 commit comments

Comments
 (0)