Skip to content
Merged
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
5 changes: 4 additions & 1 deletion tests/v3.1/fail/no_containers.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
iopenapi: 3.1.0
openapi: 3.1.0

# this example should fail as there are no paths, components or webhooks containers (at least one of which must be present)

info:
title: API
version: 1.0.0
3 changes: 3 additions & 0 deletions tests/v3.1/fail/server_enum_empty.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +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

info:
title: API
version: 1.0.0
Expand Down
3 changes: 3 additions & 0 deletions tests/v3.1/fail/servers.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
openapi: 3.1.0

# this example should fail, as servers must be an array, not an object

info:
title: API
version: 1.0.0
Expand Down
3 changes: 3 additions & 0 deletions tests/v3.1/fail/unknown_container.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
openapi: 3.1.0

# this example should fail as overlays is not a valid top-level object/keyword

info:
title: API
version: 1.0.0
Expand Down