Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tests/schema/fail/server_enum_empty.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
openapi: 3.1.0

# this example should fail as the server variable enum is empty, and so does not contain the default value
# this example should fail as the server variable enum is empty
# (it also does not contain the default value, but this is not checked by the schema)

info:
title: API
Expand Down
4 changes: 3 additions & 1 deletion tests/schema/pass/callback-object-examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,6 @@ components:
$ref: '#/components/schemas/SomePayload'
responses:
'200':
description: callback successfully processed
description: callback successfully processed
schemas:
SomePayload: {}
6 changes: 6 additions & 0 deletions tests/schema/pass/example-object-examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ info:
title: API
version: 1.0.0
components:
examples:
zip-example: {}
confirmation-success: {}
schemas:
SuccessResponse: {}
Address: {}
requestBodies:
with-example:
content:
Expand Down
2 changes: 1 addition & 1 deletion tests/schema/pass/header-object-examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ components:
type: string
pattern: ^"
Reference:
$ref: '#/components/schemas/ETag'
$ref: '#/components/headers/ETag'
Style:
schema:
type: array
Expand Down
6 changes: 6 additions & 0 deletions tests/schema/pass/media-type-examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ openapi: 3.1.0
info:
title: API
version: 1.0.0
components:
examples:
frog-example: {}
schemas:
Address: {}
Pet: {}
paths:
/something:
put:
Expand Down
6 changes: 5 additions & 1 deletion tests/schema/pass/path-item-object-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ openapi: 3.1.0
info:
title: API
version: 1.0.0
components:
schemas:
Pet: {}
ErrorModel: {}
paths:
/pets/{id}:
get:
Expand Down Expand Up @@ -32,4 +36,4 @@ paths:
type: array
items:
type: string
style: simple
style: simple
4 changes: 3 additions & 1 deletion tests/schema/pass/path_item_servers_parameters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,6 @@ components:
content:
application/json:
schema:
type: object
type: object
schemas:
SomePayload: {}
5 changes: 4 additions & 1 deletion tests/schema/pass/paths-object-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ openapi: 3.1.0
info:
title: API
version: 1.0.0
components:
schemas:
pet: {}
paths:
/pets:
get:
Expand All @@ -14,4 +17,4 @@ paths:
schema:
type: array
items:
$ref: '#/components/schemas/pet'
$ref: '#/components/schemas/pet'
5 changes: 4 additions & 1 deletion tests/schema/pass/request-body-examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ openapi: 3.1.0
info:
title: API
version: 1.0.0
components:
schemas:
User: {}
paths:
/something:
put:
Expand Down Expand Up @@ -31,4 +34,4 @@ paths:
examples:
user:
summary: User example in other format
externalValue: https://foo.bar/examples/user-example.whatever
externalValue: https://foo.bar/examples/user-example.whatever
4 changes: 3 additions & 1 deletion tests/schema/pass/response-object-examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,6 @@ components:
schema:
type: integer
no-return-value:
description: object created
description: object created
schemas:
VeryComplexType: {}