|
11 | 11 | } |
12 | 12 | ], |
13 | 13 | "paths": { |
| 14 | + "/pets2": { |
| 15 | + "post": { |
| 16 | + "tags": [ |
| 17 | + "hello-controller" |
| 18 | + ], |
| 19 | + "description": "Pets post response entity.", |
| 20 | + "operationId": "petsPost2", |
| 21 | + "requestBody": { |
| 22 | + "description": "the pet", |
| 23 | + "content": { |
| 24 | + "application/json": { |
| 25 | + "schema": { |
| 26 | + "$ref": "#/components/schemas/Pet" |
| 27 | + } |
| 28 | + } |
| 29 | + } |
| 30 | + }, |
| 31 | + "responses": { |
| 32 | + "200": { |
| 33 | + "description": "the response entity" |
| 34 | + } |
| 35 | + } |
| 36 | + } |
| 37 | + }, |
| 38 | + "/pets1": { |
| 39 | + "post": { |
| 40 | + "tags": [ |
| 41 | + "hello-controller" |
| 42 | + ], |
| 43 | + "description": "Pets post response entity.", |
| 44 | + "operationId": "petsPost1", |
| 45 | + "requestBody": { |
| 46 | + "description": "the pet", |
| 47 | + "content": { |
| 48 | + "text/plain": { |
| 49 | + "schema": { |
| 50 | + "type": "string" |
| 51 | + } |
| 52 | + } |
| 53 | + } |
| 54 | + }, |
| 55 | + "responses": { |
| 56 | + "200": { |
| 57 | + "description": "the response entity" |
| 58 | + } |
| 59 | + } |
| 60 | + } |
| 61 | + }, |
14 | 62 | "/bar/baz": { |
15 | 63 | "post": { |
16 | 64 | "tags": [ |
|
21 | 69 | "requestBody": { |
22 | 70 | "description": "the c", |
23 | 71 | "content": { |
24 | | - "application/x.a+json": { |
| 72 | + "application/x.c+json": { |
25 | 73 | "schema": { |
26 | | - "$ref": "#/components/schemas/Foo" |
| 74 | + "$ref": "#/components/schemas/Car" |
27 | 75 | } |
28 | 76 | }, |
29 | 77 | "application/x.b+json": { |
30 | 78 | "schema": { |
31 | 79 | "$ref": "#/components/schemas/Bar" |
32 | 80 | } |
33 | 81 | }, |
34 | | - "application/x.c+json": { |
| 82 | + "application/x.a+json": { |
35 | 83 | "schema": { |
36 | | - "$ref": "#/components/schemas/Car" |
| 84 | + "$ref": "#/components/schemas/Foo" |
37 | 85 | } |
38 | 86 | } |
39 | 87 | } |
|
63 | 111 | } |
64 | 112 | } |
65 | 113 | } |
66 | | - }, |
67 | | - "/pets": { |
68 | | - "post": { |
69 | | - "tags": [ |
70 | | - "hello-controller" |
71 | | - ], |
72 | | - "description": "Pets post response entity.", |
73 | | - "operationId": "petsPost_1", |
74 | | - "requestBody": { |
75 | | - "description": "the pet", |
76 | | - "content": { |
77 | | - "application/json": { |
78 | | - "schema": { |
79 | | - "$ref": "#/components/schemas/Pet" |
80 | | - } |
81 | | - }, |
82 | | - "text/plain": { |
83 | | - "schema": { |
84 | | - "type": "string" |
85 | | - } |
86 | | - } |
87 | | - } |
88 | | - }, |
89 | | - "responses": { |
90 | | - "200": { |
91 | | - "description": "the response entity" |
92 | | - } |
93 | | - } |
94 | | - } |
95 | 114 | } |
96 | 115 | }, |
97 | 116 | "components": { |
98 | 117 | "schemas": { |
99 | | - "Bar": { |
| 118 | + "Pet": { |
100 | 119 | "type": "object", |
101 | 120 | "properties": { |
102 | | - "bar": { |
| 121 | + "pet": { |
103 | 122 | "type": "string", |
104 | | - "description": "The Bar." |
| 123 | + "description": "The Pet." |
105 | 124 | } |
106 | 125 | } |
107 | 126 | }, |
|
114 | 133 | } |
115 | 134 | } |
116 | 135 | }, |
117 | | - "Foo": { |
| 136 | + "Bar": { |
118 | 137 | "type": "object", |
119 | 138 | "properties": { |
120 | | - "foo": { |
| 139 | + "bar": { |
121 | 140 | "type": "string", |
122 | | - "description": "The Foo." |
| 141 | + "description": "The Bar." |
123 | 142 | } |
124 | 143 | } |
125 | 144 | }, |
126 | | - "Pet": { |
| 145 | + "Foo": { |
127 | 146 | "type": "object", |
128 | 147 | "properties": { |
129 | | - "pet": { |
| 148 | + "foo": { |
130 | 149 | "type": "string", |
131 | | - "description": "The Pet." |
| 150 | + "description": "The Foo." |
132 | 151 | } |
133 | 152 | } |
134 | 153 | } |
|
0 commit comments