Skip to content

Commit

Permalink
Adjust unit test expectations due to changes in YAML generator
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeEdgar committed Jun 29, 2020
1 parent 0ec974a commit 28b0178
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,24 @@ openapi: 3.0.0
info:
title: Sample Pet Store App
description: This is a sample server for a pet store.
termsOfService: "http://example.com/terms/"
termsOfService: http://example.com/terms/
contact:
name: API Support
url: "http://www.example.com/support"
url: http://www.example.com/support
email: [email protected]
x-email: x-email-value
license:
name: Apache 2.0
url: "http://www.apache.org/licenses/LICENSE-2.0.html"
url: http://www.apache.org/licenses/LICENSE-2.0.html
x-license: x-license-value
version: 1.0.1
x-version: x-version-value
externalDocs:
description: Find more info here
url: "https://swagger.io"
url: https://swagger.io
x-externalDocs: x-externalDocs-value
servers:
- url: "urn:server1"
- url: urn:server1
description: Server 1 description.
variables:
Variable1:
Expand Down Expand Up @@ -49,14 +49,14 @@ servers:
x-variables-object:
prop1: value1
prop2: value2
- url: "urn:server2"
- url: urn:server2
description: Server 2 description.
security:
- api_key: []
- basic_auth: []
- oauth2_auth:
- "write:foo"
- "read:foo"
- write:foo
- read:foo
tags:
- name: tag-1
description: Tag 1 description.
Expand All @@ -66,10 +66,10 @@ tags:
description: Tag 2 description.
externalDocs:
description: Find more info here
url: "https://example.com"
url: https://example.com
paths:
/foo:
$ref: "#/paths/self"
$ref: '#/paths/self'
summary: A summary
description: Some description here.
get:
Expand All @@ -80,15 +80,15 @@ paths:
description: Operation description here.
externalDocs:
description: Find more info on GET here
url: "https://example.com/#get"
url: https://example.com/#get
operationId: getAllFoos
parameters:
- name: Param1
in: query
description: Param description here.
required: true
schema:
$ref: "#/components/schemas/MySchema"
$ref: '#/components/schemas/MySchema'
allowEmptyValue: true
deprecated: false
style: simple
Expand All @@ -102,11 +102,11 @@ paths:
value: foo
externalValue: foo-bar
Example-2:
$ref: "#/components/examples/Example-2"
$ref: '#/components/examples/Example-2'
content:
application/json:
schema:
$ref: "#/components/schemas/MySchema27"
$ref: '#/components/schemas/MySchema27'
example:
p1: v1
p2: true
Expand All @@ -123,7 +123,7 @@ paths:
allowReserved: false
x-mediaType-1: x-mediaType-1-value
x-mediaType-2: x-mediaType-2-value
- $ref: "#/components/parameters/Param2"
- $ref: '#/components/parameters/Param2'
requestBody:
description: Description of the request body.
content:
Expand All @@ -138,7 +138,7 @@ paths:
- baz
responses:
default:
$ref: "#/components/responses/DefaultResponse"
$ref: '#/components/responses/DefaultResponse'
"200":
description: Successful response.
headers:
Expand All @@ -150,7 +150,7 @@ paths:
style: simple
explode: false
schema:
$ref: "#/components/schemas/SomeOtherSchema"
$ref: '#/components/schemas/SomeOtherSchema'
example:
foo: baz
examples:
Expand All @@ -160,7 +160,7 @@ paths:
x-header-1: x-header-1-value
x-header-2: 179
Header-2:
$ref: "#/components/headers/BarHeader"
$ref: '#/components/headers/BarHeader'
content:
application/json: {}
text/plain: {}
Expand All @@ -172,28 +172,28 @@ paths:
requestBody: {}
description: Description of link 1.
server:
url: "urn:server-1"
url: urn:server-1
x-link-1: x-link-1-value
x-link-2: true
Link-2:
$ref: "#/components/links/LinkTwo"
$ref: '#/components/links/LinkTwo'
"404":
$ref: "#/components/responses/NotFound"
$ref: '#/components/responses/NotFound'
callbacks:
Callback-1:
$ref: "#/components/callbacks/CallbackOne"
$ref: '#/components/callbacks/CallbackOne'
Callback-2:
PathItem-1:
$ref: "#/paths/fooItem"
$ref: '#/paths/fooItem'
x-callback-1: x-callback-1-value
x-callback-2: 17
deprecated: true
security:
- api_key: []
- basic_auth: []
servers:
- url: "urn:server1"
- url: "urn:server2"
- url: urn:server1
- url: urn:server2
x-operation-1: true
x-operation-2:
hello: world
Expand All @@ -219,7 +219,7 @@ paths:
trace:
operationId: traceAllFoos
/foo/{fooId}:
$ref: "#/paths/OtherPathItem"
$ref: '#/paths/OtherPathItem'
x-paths-extension-1: paths extension value
x-paths-extension-2:
- array
Expand Down Expand Up @@ -256,9 +256,9 @@ components:
bearerFormat: bearer-format-value
flows:
implicit:
authorizationUrl: "urn:auth-url"
tokenUrl: "urn:token-url"
refreshUrl: "urn:refresh-url"
authorizationUrl: urn:auth-url
tokenUrl: urn:token-url
refreshUrl: urn:refresh-url
scopes:
read:foo: read access to foos
write:foo: write access to foos
Expand All @@ -270,7 +270,7 @@ components:
authorizationCode: {}
x-flows-ext-1: flows-ext-value
x-flows-ext-2: false
openIdConnectUrl: "urn:open-id-connect/url"
openIdConnectUrl: urn:open-id-connect/url
x-scheme-ext-1: -1023873
oauth:
type: oauth2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ openapi: 3.0.0
info:
title: Sample Pet Store App
description: This is a sample server for a pet store.
termsOfService: "http://example.com/terms/"
termsOfService: http://example.com/terms/
contact:
name: API Support
url: "http://www.example.com/support"
url: http://www.example.com/support
email: [email protected]
license:
name: Apache 2.0
url: "http://www.apache.org/licenses/LICENSE-2.0.html"
url: http://www.apache.org/licenses/LICENSE-2.0.html
version: 1.0.1
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
openapi: 3.0.0
servers:
- url: "https://development.gigantic-server.com/v1"
- url: https://development.gigantic-server.com/v1
description: Development server
- url: "https://staging.gigantic-server.com/v1"
- url: https://staging.gigantic-server.com/v1
description: Staging server
- url: "https://{username}.gigantic-server.com:{port}/{basePath}"
description: The production API server
Expand Down

0 comments on commit 28b0178

Please sign in to comment.