Skip to content

Commit fe41bac

Browse files
authored
tests: add comments to expected failure cases (#2608)
Signed-off-by: Mike Ralphson <mike.ralphson@gmail.com>
1 parent 3d2c044 commit fe41bac

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

tests/v3.1/fail/no_containers.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
iopenapi: 3.1.0
1+
openapi: 3.1.0
2+
3+
# this example should fail as there are no paths, components or webhooks containers (at least one of which must be present)
4+
25
info:
36
title: API
47
version: 1.0.0

tests/v3.1/fail/server_enum_empty.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
openapi: 3.1.0
2+
3+
# this example should fail as the server variable enum is empty, and so does not contain the default value
4+
25
info:
36
title: API
47
version: 1.0.0

tests/v3.1/fail/servers.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
openapi: 3.1.0
2+
3+
# this example should fail, as servers must be an array, not an object
4+
25
info:
36
title: API
47
version: 1.0.0

tests/v3.1/fail/unknown_container.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
openapi: 3.1.0
2+
3+
# this example should fail as overlays is not a valid top-level object/keyword
4+
25
info:
36
title: API
47
version: 1.0.0

0 commit comments

Comments
 (0)