Skip to content

Commit 28b0178

Browse files
committed
Adjust unit test expectations due to changes in YAML generator
See: FasterXML/jackson-dataformats-text#201
1 parent 0ec974a commit 28b0178

File tree

3 files changed

+35
-35
lines changed

3 files changed

+35
-35
lines changed

core/src/test/resources/io/smallrye/openapi/runtime/io/_everything.yaml

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,24 @@ openapi: 3.0.0
33
info:
44
title: Sample Pet Store App
55
description: This is a sample server for a pet store.
6-
termsOfService: "http://example.com/terms/"
6+
termsOfService: http://example.com/terms/
77
contact:
88
name: API Support
9-
url: "http://www.example.com/support"
9+
url: http://www.example.com/support
1010
1111
x-email: x-email-value
1212
license:
1313
name: Apache 2.0
14-
url: "http://www.apache.org/licenses/LICENSE-2.0.html"
14+
url: http://www.apache.org/licenses/LICENSE-2.0.html
1515
x-license: x-license-value
1616
version: 1.0.1
1717
x-version: x-version-value
1818
externalDocs:
1919
description: Find more info here
20-
url: "https://swagger.io"
20+
url: https://swagger.io
2121
x-externalDocs: x-externalDocs-value
2222
servers:
23-
- url: "urn:server1"
23+
- url: urn:server1
2424
description: Server 1 description.
2525
variables:
2626
Variable1:
@@ -49,14 +49,14 @@ servers:
4949
x-variables-object:
5050
prop1: value1
5151
prop2: value2
52-
- url: "urn:server2"
52+
- url: urn:server2
5353
description: Server 2 description.
5454
security:
5555
- api_key: []
5656
- basic_auth: []
5757
- oauth2_auth:
58-
- "write:foo"
59-
- "read:foo"
58+
- write:foo
59+
- read:foo
6060
tags:
6161
- name: tag-1
6262
description: Tag 1 description.
@@ -66,10 +66,10 @@ tags:
6666
description: Tag 2 description.
6767
externalDocs:
6868
description: Find more info here
69-
url: "https://example.com"
69+
url: https://example.com
7070
paths:
7171
/foo:
72-
$ref: "#/paths/self"
72+
$ref: '#/paths/self'
7373
summary: A summary
7474
description: Some description here.
7575
get:
@@ -80,15 +80,15 @@ paths:
8080
description: Operation description here.
8181
externalDocs:
8282
description: Find more info on GET here
83-
url: "https://example.com/#get"
83+
url: https://example.com/#get
8484
operationId: getAllFoos
8585
parameters:
8686
- name: Param1
8787
in: query
8888
description: Param description here.
8989
required: true
9090
schema:
91-
$ref: "#/components/schemas/MySchema"
91+
$ref: '#/components/schemas/MySchema'
9292
allowEmptyValue: true
9393
deprecated: false
9494
style: simple
@@ -102,11 +102,11 @@ paths:
102102
value: foo
103103
externalValue: foo-bar
104104
Example-2:
105-
$ref: "#/components/examples/Example-2"
105+
$ref: '#/components/examples/Example-2'
106106
content:
107107
application/json:
108108
schema:
109-
$ref: "#/components/schemas/MySchema27"
109+
$ref: '#/components/schemas/MySchema27'
110110
example:
111111
p1: v1
112112
p2: true
@@ -123,7 +123,7 @@ paths:
123123
allowReserved: false
124124
x-mediaType-1: x-mediaType-1-value
125125
x-mediaType-2: x-mediaType-2-value
126-
- $ref: "#/components/parameters/Param2"
126+
- $ref: '#/components/parameters/Param2'
127127
requestBody:
128128
description: Description of the request body.
129129
content:
@@ -138,7 +138,7 @@ paths:
138138
- baz
139139
responses:
140140
default:
141-
$ref: "#/components/responses/DefaultResponse"
141+
$ref: '#/components/responses/DefaultResponse'
142142
"200":
143143
description: Successful response.
144144
headers:
@@ -150,7 +150,7 @@ paths:
150150
style: simple
151151
explode: false
152152
schema:
153-
$ref: "#/components/schemas/SomeOtherSchema"
153+
$ref: '#/components/schemas/SomeOtherSchema'
154154
example:
155155
foo: baz
156156
examples:
@@ -160,7 +160,7 @@ paths:
160160
x-header-1: x-header-1-value
161161
x-header-2: 179
162162
Header-2:
163-
$ref: "#/components/headers/BarHeader"
163+
$ref: '#/components/headers/BarHeader'
164164
content:
165165
application/json: {}
166166
text/plain: {}
@@ -172,28 +172,28 @@ paths:
172172
requestBody: {}
173173
description: Description of link 1.
174174
server:
175-
url: "urn:server-1"
175+
url: urn:server-1
176176
x-link-1: x-link-1-value
177177
x-link-2: true
178178
Link-2:
179-
$ref: "#/components/links/LinkTwo"
179+
$ref: '#/components/links/LinkTwo'
180180
"404":
181-
$ref: "#/components/responses/NotFound"
181+
$ref: '#/components/responses/NotFound'
182182
callbacks:
183183
Callback-1:
184-
$ref: "#/components/callbacks/CallbackOne"
184+
$ref: '#/components/callbacks/CallbackOne'
185185
Callback-2:
186186
PathItem-1:
187-
$ref: "#/paths/fooItem"
187+
$ref: '#/paths/fooItem'
188188
x-callback-1: x-callback-1-value
189189
x-callback-2: 17
190190
deprecated: true
191191
security:
192192
- api_key: []
193193
- basic_auth: []
194194
servers:
195-
- url: "urn:server1"
196-
- url: "urn:server2"
195+
- url: urn:server1
196+
- url: urn:server2
197197
x-operation-1: true
198198
x-operation-2:
199199
hello: world
@@ -219,7 +219,7 @@ paths:
219219
trace:
220220
operationId: traceAllFoos
221221
/foo/{fooId}:
222-
$ref: "#/paths/OtherPathItem"
222+
$ref: '#/paths/OtherPathItem'
223223
x-paths-extension-1: paths extension value
224224
x-paths-extension-2:
225225
- array
@@ -256,9 +256,9 @@ components:
256256
bearerFormat: bearer-format-value
257257
flows:
258258
implicit:
259-
authorizationUrl: "urn:auth-url"
260-
tokenUrl: "urn:token-url"
261-
refreshUrl: "urn:refresh-url"
259+
authorizationUrl: urn:auth-url
260+
tokenUrl: urn:token-url
261+
refreshUrl: urn:refresh-url
262262
scopes:
263263
read:foo: read access to foos
264264
write:foo: write access to foos
@@ -270,7 +270,7 @@ components:
270270
authorizationCode: {}
271271
x-flows-ext-1: flows-ext-value
272272
x-flows-ext-2: false
273-
openIdConnectUrl: "urn:open-id-connect/url"
273+
openIdConnectUrl: urn:open-id-connect/url
274274
x-scheme-ext-1: -1023873
275275
oauth:
276276
type: oauth2

core/src/test/resources/io/smallrye/openapi/runtime/io/info.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ openapi: 3.0.0
33
info:
44
title: Sample Pet Store App
55
description: This is a sample server for a pet store.
6-
termsOfService: "http://example.com/terms/"
6+
termsOfService: http://example.com/terms/
77
contact:
88
name: API Support
9-
url: "http://www.example.com/support"
9+
url: http://www.example.com/support
1010
1111
license:
1212
name: Apache 2.0
13-
url: "http://www.apache.org/licenses/LICENSE-2.0.html"
13+
url: http://www.apache.org/licenses/LICENSE-2.0.html
1414
version: 1.0.1

core/src/test/resources/io/smallrye/openapi/runtime/io/servers.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
openapi: 3.0.0
33
servers:
4-
- url: "https://development.gigantic-server.com/v1"
4+
- url: https://development.gigantic-server.com/v1
55
description: Development server
6-
- url: "https://staging.gigantic-server.com/v1"
6+
- url: https://staging.gigantic-server.com/v1
77
description: Staging server
88
- url: "https://{username}.gigantic-server.com:{port}/{basePath}"
99
description: The production API server

0 commit comments

Comments
 (0)