Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: add comments to expected failure cases #2608

Merged
merged 1 commit into from
Jun 10, 2021
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