...
1---
2swagger: '2.0'
3info:
4 title: cannot expand
5schemes:
6 - http
7basePath: /api
8consumes:
9 - application/json
10produces:
11 - application/json
12parameters:
13 someWhere:
14 name: someWhere
15 in: body
16 required: true
17 schema:
18 type: integer
19paths:
20 /common:
21 get:
22 operationId: commonGet
23 summary: here to test path collisons
24 responses:
25 '200':
26 description: OK
27 schema:
28 type: array
29 items:
30 $ref: '#/definitions/nowhere'
31 '201':
32 description: OK
33 schema:
34 $ref: '#/thisIs/anAbitrary/jsonPointer/toNowhere'
35 /wrong:
36 get:
37 operationId: target type mismatch
38 responses:
39 '200':
40 description: OK
41 schema:
42 $ref: '#/parameters/someWhere'
43 /wrongcode:
44 get:
45 operationId: target type mismatch
46 responses:
47 'two-hundred':
48 description: OK
49 schema:
50 type: string
51definitions:
52 somePlace:
53 type: string
View as plain text