apib2swagger 1.9.2 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/codeql-analysis.yml +71 -0
- package/.github/workflows/docker-publish.yml +70 -0
- package/.github/workflows/nodejs.yml +26 -0
- package/.travis.yml +3 -5
- package/Dockerfile +5 -0
- package/LICENSE +0 -0
- package/README.md +31 -5
- package/bin/apib2swagger.js +43 -17
- package/index.js +92 -374
- package/package.json +6 -4
- package/src/escape_json_pointer.js +0 -0
- package/src/mson_to_json_schema.js +13 -8
- package/src/parameters.js +111 -0
- package/src/requests.js +344 -0
- package/src/responses.js +181 -0
- package/src/util.js +127 -0
- package/test/input/Attributes.md +0 -0
- package/test/input/Issue-#15.md +0 -0
- package/test/input/Issue-#22.md +0 -0
- package/test/input/Issue-#23.md +0 -0
- package/test/input/Issue-#26.md +0 -0
- package/test/input/Issue-#29.md +0 -0
- package/test/input/Issue-#33.md +0 -0
- package/test/input/Issue-#35.md +0 -0
- package/test/input/Issue-#36.md +0 -0
- package/test/input/Issue-#38.md +0 -0
- package/test/input/Issue-#49.md +24 -0
- package/test/input/OpenAPI3_attributes.md +36 -0
- package/test/input/OpenAPI3_headers.md +74 -0
- package/test/input/OpenAPI3_includes.md +22 -0
- package/test/input/OpenAPI3_requests.md +162 -0
- package/test/input/OpenAPI3_responses.md +177 -0
- package/test/input/Schema.md +0 -0
- package/test/input/apiblueprint_uber.md +0 -0
- package/test/input/apiblueprint_valid_simple.md +0 -0
- package/test/input/includes/resource-request-body-2.json +3 -0
- package/test/input/includes/resource-request-body.json +3 -0
- package/test/input/includes/resource-request-schema.json +9 -0
- package/test/input/includes/resource-response-body-2.json +3 -0
- package/test/input/includes/resource-response-body.json +3 -0
- package/test/input/includes/resource-response-schema.json +9 -0
- package/test/input/schema_without_body.md +17 -0
- package/test/meta_schema.json +0 -0
- package/test/openAPI_30_schema.json +1662 -0
- package/test/output/01. Simplest API.json +1 -0
- package/test/output/01. Simplest API.ref.json +1 -0
- package/test/output/02. Resource and Actions.json +2 -0
- package/test/output/02. Resource and Actions.ref.json +2 -0
- package/test/output/03. Named Resource and Actions.json +2 -0
- package/test/output/03. Named Resource and Actions.ref.json +2 -0
- package/test/output/04. Grouping Resources.json +2 -0
- package/test/output/04. Grouping Resources.ref.json +2 -0
- package/test/output/05. Responses.json +7 -1
- package/test/output/05. Responses.ref.json +7 -1
- package/test/output/06. Requests.json +9 -3
- package/test/output/06. Requests.ref.json +9 -3
- package/test/output/07. Parameters.json +12 -5
- package/test/output/07. Parameters.ref.json +12 -5
- package/test/output/08. Attributes.json +1 -0
- package/test/output/08. Attributes.ref.json +1 -0
- package/test/output/09. Advanced Attributes.json +3 -0
- package/test/output/09. Advanced Attributes.ref.json +3 -0
- package/test/output/10. Data Structures.json +3 -0
- package/test/output/10. Data Structures.ref.json +3 -0
- package/test/output/11. Resource Model.json +7 -1
- package/test/output/11. Resource Model.ref.json +7 -1
- package/test/output/12. Advanced Action.json +3 -0
- package/test/output/12. Advanced Action.ref.json +3 -0
- package/test/output/13. Named Endpoints.json +12 -2
- package/test/output/13. Named Endpoints.ref.json +12 -2
- package/test/output/Attributes.json +1 -0
- package/test/output/Attributes.ref.json +1 -0
- package/test/output/Gist Fox API + Auth.json +47 -7
- package/test/output/Gist Fox API + Auth.ref.json +47 -7
- package/test/output/Issue-#15.json +3 -0
- package/test/output/Issue-#15.ref.json +3 -0
- package/test/output/Issue-#22.json +0 -0
- package/test/output/Issue-#22.ref.json +0 -0
- package/test/output/Issue-#23.json +1 -0
- package/test/output/Issue-#23.ref.json +1 -0
- package/test/output/Issue-#26.json +2 -0
- package/test/output/Issue-#26.ref.json +2 -0
- package/test/output/Issue-#29.json +2 -0
- package/test/output/Issue-#29.ref.json +2 -0
- package/test/output/Issue-#33.json +9 -8
- package/test/output/Issue-#33.ref.json +9 -8
- package/test/output/Issue-#35.json +0 -0
- package/test/output/Issue-#35.ref.json +0 -0
- package/test/output/Issue-#36.json +1 -0
- package/test/output/Issue-#36.ref.json +1 -0
- package/test/output/Issue-#38.bearer.json +53 -52
- package/test/output/Issue-#38.json +1 -0
- package/test/output/Issue-#38.ref.json +1 -0
- package/test/output/Issue-#49.json +141 -0
- package/test/output/Issue-#49.ref.json +126 -0
- package/test/output/OpenAPI3_attributes.json +199 -0
- package/test/output/OpenAPI3_attributes.ref.json +173 -0
- package/test/output/OpenAPI3_headers.json +169 -0
- package/test/output/OpenAPI3_headers.ref.json +169 -0
- package/test/output/OpenAPI3_includes.json +66 -0
- package/test/output/OpenAPI3_includes.ref.json +66 -0
- package/test/output/OpenAPI3_requests.json +326 -0
- package/test/output/OpenAPI3_requests.ref.json +321 -0
- package/test/output/OpenAPI3_responses.json +255 -0
- package/test/output/OpenAPI3_responses.ref.json +245 -0
- package/test/output/Schema.json +3 -0
- package/test/output/Schema.ref.json +3 -0
- package/test/output/apiblueprint_uber.json +5 -0
- package/test/output/apiblueprint_uber.ref.json +5 -0
- package/test/output/apiblueprint_valid_simple.json +47 -7
- package/test/output/apiblueprint_valid_simple.ref.json +47 -7
- package/test/output/schema_without_body.json +52 -0
- package/test/output/schema_without_body.ref.json +52 -0
- package/test/swagger_20_schema.json +0 -0
- package/test/test.js +31 -15
- package/test/util.test.js +151 -0
- package/.npmignore +0 -35
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
{
|
|
2
|
+
"openapi": "3.0.3",
|
|
3
|
+
"info": {
|
|
4
|
+
"title": "",
|
|
5
|
+
"version": "1.0.0",
|
|
6
|
+
"description": ""
|
|
7
|
+
},
|
|
8
|
+
"servers": [
|
|
9
|
+
{
|
|
10
|
+
"url": "https://www.testhost.com"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"paths": {
|
|
14
|
+
"/some/resource": {
|
|
15
|
+
"get": {
|
|
16
|
+
"responses": {
|
|
17
|
+
"200": {
|
|
18
|
+
"description": "Array schema",
|
|
19
|
+
"headers": {
|
|
20
|
+
"X-My-Message-Header": {
|
|
21
|
+
"schema": {
|
|
22
|
+
"type": "string"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"content": {
|
|
27
|
+
"application/json": {
|
|
28
|
+
"schema": {
|
|
29
|
+
"oneOf": [
|
|
30
|
+
{
|
|
31
|
+
"type": "object",
|
|
32
|
+
"properties": {
|
|
33
|
+
"message": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"description": "This is the message description "
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"type": "object",
|
|
41
|
+
"properties": {
|
|
42
|
+
"other": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"description": "This is the message description "
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"type": "array",
|
|
50
|
+
"items": {
|
|
51
|
+
"type": "object",
|
|
52
|
+
"properties": {
|
|
53
|
+
"message": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"description": "This is the message description "
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
"examples": {
|
|
63
|
+
"example1": {
|
|
64
|
+
"value": {
|
|
65
|
+
"message": "Hello World!"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"example2": {
|
|
69
|
+
"value": {
|
|
70
|
+
"other": "Hello World!"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"example3": {
|
|
74
|
+
"value": {
|
|
75
|
+
"other": "Hello World!"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"example4": {
|
|
79
|
+
"value": [
|
|
80
|
+
{
|
|
81
|
+
"message": "Hello World!"
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"400": {
|
|
90
|
+
"description": "Bad Request",
|
|
91
|
+
"headers": {},
|
|
92
|
+
"content": {
|
|
93
|
+
"application/json": {
|
|
94
|
+
"example": {
|
|
95
|
+
"message": "Invalid data"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"summary": "Some resource",
|
|
102
|
+
"operationId": "Some resource",
|
|
103
|
+
"description": "",
|
|
104
|
+
"tags": [],
|
|
105
|
+
"parameters": []
|
|
106
|
+
},
|
|
107
|
+
"post": {
|
|
108
|
+
"responses": {
|
|
109
|
+
"200": {
|
|
110
|
+
"description": "OK",
|
|
111
|
+
"headers": {
|
|
112
|
+
"X-My-Message-Header": {
|
|
113
|
+
"schema": {
|
|
114
|
+
"type": "string"
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"content": {
|
|
119
|
+
"application/json": {
|
|
120
|
+
"schema": {
|
|
121
|
+
"type": "object",
|
|
122
|
+
"properties": {
|
|
123
|
+
"message": {
|
|
124
|
+
"type": "string",
|
|
125
|
+
"description": "This is the message description "
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"examples": {
|
|
130
|
+
"example1": {
|
|
131
|
+
"value": {
|
|
132
|
+
"message": "Hello World!"
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"example2": {
|
|
136
|
+
"value": {
|
|
137
|
+
"message": "Hello World!"
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"summary": "Some resource",
|
|
146
|
+
"operationId": "Some resource",
|
|
147
|
+
"description": "",
|
|
148
|
+
"tags": [],
|
|
149
|
+
"parameters": []
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"/test/attributes": {
|
|
153
|
+
"get": {
|
|
154
|
+
"responses": {
|
|
155
|
+
"200": {
|
|
156
|
+
"description": "OK",
|
|
157
|
+
"headers": {},
|
|
158
|
+
"content": {
|
|
159
|
+
"application/json": {
|
|
160
|
+
"schema": {
|
|
161
|
+
"oneOf": [
|
|
162
|
+
{
|
|
163
|
+
"type": "object",
|
|
164
|
+
"properties": {
|
|
165
|
+
"message": {
|
|
166
|
+
"type": "string"
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"type": "object",
|
|
172
|
+
"properties": {
|
|
173
|
+
"otherMessage": {
|
|
174
|
+
"type": "string"
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
]
|
|
179
|
+
},
|
|
180
|
+
"examples": {
|
|
181
|
+
"example1": {
|
|
182
|
+
"value": {
|
|
183
|
+
"message": "Hello World!"
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"example2": {
|
|
187
|
+
"value": {
|
|
188
|
+
"message": "Hello World2"
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
"example3": {
|
|
192
|
+
"value": {
|
|
193
|
+
"otherMessage": "Hello World!"
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
"summary": "Some resource",
|
|
202
|
+
"operationId": "Some resource",
|
|
203
|
+
"description": "",
|
|
204
|
+
"tags": [],
|
|
205
|
+
"parameters": []
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
"/message": {
|
|
209
|
+
"get": {
|
|
210
|
+
"responses": {
|
|
211
|
+
"200": {
|
|
212
|
+
"description": "Unparsable schema should fall back to Attributes",
|
|
213
|
+
"headers": {},
|
|
214
|
+
"content": {
|
|
215
|
+
"application/json": {
|
|
216
|
+
"schema": {
|
|
217
|
+
"$ref": "#/components/schemas/Message"
|
|
218
|
+
},
|
|
219
|
+
"example": {
|
|
220
|
+
"message": ""
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
"summary": "Message",
|
|
227
|
+
"operationId": "Message",
|
|
228
|
+
"description": "",
|
|
229
|
+
"tags": [],
|
|
230
|
+
"parameters": []
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
"components": {
|
|
235
|
+
"schemas":{
|
|
236
|
+
"Message": {
|
|
237
|
+
"type": "object",
|
|
238
|
+
"properties": {
|
|
239
|
+
"message": {
|
|
240
|
+
"type": "string"
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
"OtherMessage": {
|
|
245
|
+
"type": "object",
|
|
246
|
+
"properties": {
|
|
247
|
+
"otherMessage": {
|
|
248
|
+
"type": "string"
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
"tags": []
|
|
255
|
+
}
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
{
|
|
2
|
+
"openapi": "3.0.3",
|
|
3
|
+
"info": {
|
|
4
|
+
"title": "",
|
|
5
|
+
"version": "1.0.0",
|
|
6
|
+
"description": ""
|
|
7
|
+
},
|
|
8
|
+
"servers": [
|
|
9
|
+
{
|
|
10
|
+
"url": "https://www.testhost.com"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"paths": {
|
|
14
|
+
"/some/resource": {
|
|
15
|
+
"get": {
|
|
16
|
+
"responses": {
|
|
17
|
+
"200": {
|
|
18
|
+
"description": "Array schema",
|
|
19
|
+
"headers": {
|
|
20
|
+
"X-My-Message-Header": {
|
|
21
|
+
"schema": {
|
|
22
|
+
"type": "string"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"content": {
|
|
27
|
+
"application/json": {
|
|
28
|
+
"schema": {
|
|
29
|
+
"oneOf": [
|
|
30
|
+
{
|
|
31
|
+
"type": "object",
|
|
32
|
+
"properties": {
|
|
33
|
+
"message": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"description": "This is the message description "
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"type": "object",
|
|
41
|
+
"properties": {
|
|
42
|
+
"other": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"description": "This is the message description "
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"type": "array",
|
|
50
|
+
"items": {
|
|
51
|
+
"type": "object",
|
|
52
|
+
"properties": {
|
|
53
|
+
"message": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"description": "This is the message description "
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
"examples": {
|
|
63
|
+
"example1": {
|
|
64
|
+
"value": {
|
|
65
|
+
"message": "Hello World!"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"example2": {
|
|
69
|
+
"value": {
|
|
70
|
+
"other": "Hello World!"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"example3": {
|
|
74
|
+
"value": {
|
|
75
|
+
"other": "Hello World!"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"example4": {
|
|
79
|
+
"value": [
|
|
80
|
+
{
|
|
81
|
+
"message": "Hello World!"
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"400": {
|
|
90
|
+
"description": "Bad Request",
|
|
91
|
+
"headers": {},
|
|
92
|
+
"content": {
|
|
93
|
+
"application/json": {
|
|
94
|
+
"example": {
|
|
95
|
+
"message": "Invalid data"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"summary": "Some resource",
|
|
102
|
+
"operationId": "Some resource",
|
|
103
|
+
"description": "",
|
|
104
|
+
"tags": [],
|
|
105
|
+
"parameters": []
|
|
106
|
+
},
|
|
107
|
+
"post": {
|
|
108
|
+
"responses": {
|
|
109
|
+
"200": {
|
|
110
|
+
"description": "OK",
|
|
111
|
+
"headers": {
|
|
112
|
+
"X-My-Message-Header": {
|
|
113
|
+
"schema": {
|
|
114
|
+
"type": "string"
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"content": {
|
|
119
|
+
"application/json": {
|
|
120
|
+
"schema": {
|
|
121
|
+
"type": "object",
|
|
122
|
+
"properties": {
|
|
123
|
+
"message": {
|
|
124
|
+
"type": "string",
|
|
125
|
+
"description": "This is the message description "
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"examples": {
|
|
130
|
+
"example1": {
|
|
131
|
+
"value": {
|
|
132
|
+
"message": "Hello World!"
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"example2": {
|
|
136
|
+
"value": {
|
|
137
|
+
"message": "Hello World!"
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"summary": "Some resource",
|
|
146
|
+
"operationId": "Some resource",
|
|
147
|
+
"description": "",
|
|
148
|
+
"tags": [],
|
|
149
|
+
"parameters": []
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"/test/attributes": {
|
|
153
|
+
"get": {
|
|
154
|
+
"responses": {
|
|
155
|
+
"200": {
|
|
156
|
+
"description": "OK",
|
|
157
|
+
"headers": {},
|
|
158
|
+
"content": {
|
|
159
|
+
"application/json": {
|
|
160
|
+
"schema": {
|
|
161
|
+
"oneOf": [
|
|
162
|
+
{
|
|
163
|
+
"$ref": "#/components/schemas/Message"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"$ref": "#/components/schemas/OtherMessage"
|
|
167
|
+
}
|
|
168
|
+
]
|
|
169
|
+
},
|
|
170
|
+
"examples": {
|
|
171
|
+
"example1": {
|
|
172
|
+
"value": {
|
|
173
|
+
"message": "Hello World!"
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"example2": {
|
|
177
|
+
"value": {
|
|
178
|
+
"message": "Hello World2"
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
"example3": {
|
|
182
|
+
"value": {
|
|
183
|
+
"otherMessage": "Hello World!"
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
"summary": "Some resource",
|
|
192
|
+
"operationId": "Some resource",
|
|
193
|
+
"description": "",
|
|
194
|
+
"tags": [],
|
|
195
|
+
"parameters": []
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"/message": {
|
|
199
|
+
"get": {
|
|
200
|
+
"responses": {
|
|
201
|
+
"200": {
|
|
202
|
+
"description": "Unparsable schema should fall back to Attributes",
|
|
203
|
+
"headers": {},
|
|
204
|
+
"content": {
|
|
205
|
+
"application/json": {
|
|
206
|
+
"schema": {
|
|
207
|
+
"$ref": "#/components/schemas/Message"
|
|
208
|
+
},
|
|
209
|
+
"example": {
|
|
210
|
+
"message": ""
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
"summary": "Message",
|
|
217
|
+
"operationId": "Message",
|
|
218
|
+
"description": "",
|
|
219
|
+
"tags": [],
|
|
220
|
+
"parameters": []
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
"components": {
|
|
225
|
+
"schemas":{
|
|
226
|
+
"Message": {
|
|
227
|
+
"type": "object",
|
|
228
|
+
"properties": {
|
|
229
|
+
"message": {
|
|
230
|
+
"type": "string"
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
"OtherMessage": {
|
|
235
|
+
"type": "object",
|
|
236
|
+
"properties": {
|
|
237
|
+
"otherMessage": {
|
|
238
|
+
"type": "string"
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
"tags": []
|
|
245
|
+
}
|
package/test/output/Schema.json
CHANGED
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"summary": "Some resource",
|
|
27
|
+
"operationId": "Some resource",
|
|
27
28
|
"description": "",
|
|
28
29
|
"tags": [],
|
|
29
30
|
"parameters": [
|
|
@@ -66,6 +67,7 @@
|
|
|
66
67
|
}
|
|
67
68
|
},
|
|
68
69
|
"summary": "",
|
|
70
|
+
"operationId": "",
|
|
69
71
|
"description": "",
|
|
70
72
|
"tags": [],
|
|
71
73
|
"parameters": [
|
|
@@ -101,6 +103,7 @@
|
|
|
101
103
|
}
|
|
102
104
|
},
|
|
103
105
|
"summary": "",
|
|
106
|
+
"operationId": "",
|
|
104
107
|
"description": "",
|
|
105
108
|
"tags": [],
|
|
106
109
|
"parameters": [
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"summary": "Some resource",
|
|
27
|
+
"operationId": "Some resource",
|
|
27
28
|
"description": "",
|
|
28
29
|
"tags": [],
|
|
29
30
|
"parameters": [
|
|
@@ -61,6 +62,7 @@
|
|
|
61
62
|
}
|
|
62
63
|
},
|
|
63
64
|
"summary": "",
|
|
65
|
+
"operationId": "",
|
|
64
66
|
"description": "",
|
|
65
67
|
"tags": [],
|
|
66
68
|
"parameters": [
|
|
@@ -96,6 +98,7 @@
|
|
|
96
98
|
}
|
|
97
99
|
},
|
|
98
100
|
"summary": "",
|
|
101
|
+
"operationId": "",
|
|
99
102
|
"description": "",
|
|
100
103
|
"tags": [],
|
|
101
104
|
"parameters": [
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
"summary": "Product Types",
|
|
47
|
+
"operationId": "Product Types",
|
|
47
48
|
"description": "The Products endpoint returns information about the *Uber* products\noffered at a given location. The response includes the display name\nand other details about each product, and lists the products in the\nproper display order.",
|
|
48
49
|
"tags": [
|
|
49
50
|
"Products"
|
|
@@ -116,6 +117,7 @@
|
|
|
116
117
|
}
|
|
117
118
|
},
|
|
118
119
|
"summary": "Price Estimates",
|
|
120
|
+
"operationId": "Price Estimates",
|
|
119
121
|
"description": "The Price Estimates endpoint returns an estimated price range\nfor each product offered at a given location. The price estimate is\nprovided as a formatted string with the full price range and the localized\ncurrency symbol.<br><br>The response also includes low and high estimates,\nand the [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217) currency code for\nsituations requiring currency conversion. When surge is active for a particular\nproduct, its surge_multiplier will be greater than 1, but the price estimate\nalready factors in this multiplier.",
|
|
120
122
|
"tags": [
|
|
121
123
|
"Estimates"
|
|
@@ -198,6 +200,7 @@
|
|
|
198
200
|
}
|
|
199
201
|
},
|
|
200
202
|
"summary": "Time Estimates",
|
|
203
|
+
"operationId": "Time Estimates",
|
|
201
204
|
"description": "The Time Estimates endpoint returns ETAs for all products offered at a given location, with the responses expressed as integers in seconds. We recommend that this endpoint be called every minute to provide the most accurate, up-to-date ETAs.",
|
|
202
205
|
"tags": [
|
|
203
206
|
"Estimates"
|
|
@@ -277,6 +280,7 @@
|
|
|
277
280
|
}
|
|
278
281
|
},
|
|
279
282
|
"summary": "User Profile",
|
|
283
|
+
"operationId": "User Profile",
|
|
280
284
|
"description": "The User Profile endpoint returns information about the Uber user that has authorized with the application.",
|
|
281
285
|
"tags": [
|
|
282
286
|
"User"
|
|
@@ -326,6 +330,7 @@
|
|
|
326
330
|
}
|
|
327
331
|
},
|
|
328
332
|
"summary": "User Activity",
|
|
333
|
+
"operationId": "User Activity",
|
|
329
334
|
"description": "The User Activity endpoint returns data about a user's lifetime activity with Uber. The response will include pickup locations and times, dropoff locations and times, the distance of past requests, and information about which products were requested.<br><br>The history array in the response will have a maximum length based on the limit parameter. The response value count may exceed limit, therefore subsequent API requests may be necessary.",
|
|
330
335
|
"tags": [
|
|
331
336
|
"User"
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
"summary": "Product Types",
|
|
47
|
+
"operationId": "Product Types",
|
|
47
48
|
"description": "The Products endpoint returns information about the *Uber* products\noffered at a given location. The response includes the display name\nand other details about each product, and lists the products in the\nproper display order.",
|
|
48
49
|
"tags": [
|
|
49
50
|
"Products"
|
|
@@ -116,6 +117,7 @@
|
|
|
116
117
|
}
|
|
117
118
|
},
|
|
118
119
|
"summary": "Price Estimates",
|
|
120
|
+
"operationId": "Price Estimates",
|
|
119
121
|
"description": "The Price Estimates endpoint returns an estimated price range\nfor each product offered at a given location. The price estimate is\nprovided as a formatted string with the full price range and the localized\ncurrency symbol.<br><br>The response also includes low and high estimates,\nand the [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217) currency code for\nsituations requiring currency conversion. When surge is active for a particular\nproduct, its surge_multiplier will be greater than 1, but the price estimate\nalready factors in this multiplier.",
|
|
120
122
|
"tags": [
|
|
121
123
|
"Estimates"
|
|
@@ -198,6 +200,7 @@
|
|
|
198
200
|
}
|
|
199
201
|
},
|
|
200
202
|
"summary": "Time Estimates",
|
|
203
|
+
"operationId": "Time Estimates",
|
|
201
204
|
"description": "The Time Estimates endpoint returns ETAs for all products offered at a given location, with the responses expressed as integers in seconds. We recommend that this endpoint be called every minute to provide the most accurate, up-to-date ETAs.",
|
|
202
205
|
"tags": [
|
|
203
206
|
"Estimates"
|
|
@@ -277,6 +280,7 @@
|
|
|
277
280
|
}
|
|
278
281
|
},
|
|
279
282
|
"summary": "User Profile",
|
|
283
|
+
"operationId": "User Profile",
|
|
280
284
|
"description": "The User Profile endpoint returns information about the Uber user that has authorized with the application.",
|
|
281
285
|
"tags": [
|
|
282
286
|
"User"
|
|
@@ -326,6 +330,7 @@
|
|
|
326
330
|
}
|
|
327
331
|
},
|
|
328
332
|
"summary": "User Activity",
|
|
333
|
+
"operationId": "User Activity",
|
|
329
334
|
"description": "The User Activity endpoint returns data about a user's lifetime activity with Uber. The response will include pickup locations and times, dropoff locations and times, the distance of past requests, and information about which products were requested.<br><br>The history array in the response will have a maximum length based on the limit parameter. The response value count may exceed limit, therefore subsequent API requests may be necessary.",
|
|
330
335
|
"tags": [
|
|
331
336
|
"User"
|