...
1{
2 "swagger": "2.0",
3 "info": {
4 "version": "2.1.0",
5 "title": "Supported, but non Swagger 20 compliant $ref constructs"
6 },
7 "host": "item.com",
8 "basePath": "/extraRefs",
9 "schemes": [
10 "http"
11 ],
12 "paths": {
13 "/employees": {
14 "get": {
15 "operationId": "LIST-Employees",
16 "summary": "List Employee Types",
17 "parameters": [
18 {
19 "description": "unsupported $ref in simple param",
20 "name": "myQueryParam",
21 "in": "query",
22 "type": "array",
23 "items": {
24 "$ref": "#/definitions/arrayType"
25 }
26 }
27 ],
28 "responses": {
29 "200": {
30 "description": "unsupported $ref in header",
31 "headers": {
32 "X-header": {
33 "type": "array",
34 "items": {
35 "$ref": "#/definitions/headerType"
36 }
37 }
38 },
39 "schema": {
40 "type": "string"
41 }
42 }
43 }
44 }
45 }
46 },
47 "definitions": {
48 "arrayType": {
49 "type": "integer",
50 "format": "int32"
51 },
52 "headerType": {
53 "type": "string",
54 "format": "uuid"
55 }
56 }
57}
View as plain text