Skip to content

Commit 6c89def

Browse files
committed
Schema and test coverage of openapi: X.Y
Also remove what looked to be a part of the regex allowing for "-rcN" suffixes, which are not mentioned in the field definition at all.
1 parent 6a4d6df commit 6c89def

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

src/schemas/validation/schema.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ type: object
77
properties:
88
openapi:
99
type: string
10-
pattern: '^3\.2\.\d+(-.+)?$'
10+
pattern: '^3\.2(\.\d+)?$'
1111
$self:
1212
type: string
1313
format: uri-reference

tests/schema/pass/info-object-example.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# including External Documentation Object Example
2-
openapi: 3.2.0
2+
openapi: "3.2"
33
$self: https://example.com/openapi
44
info:
55
title: Example Pet Store App

tests/schema/pass/mega.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
openapi: 3.2.0
1+
openapi: "3.2"
22
info:
33
summary: My API's summary
44
title: My API

tests/schema/pass/minimal_comp.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
openapi: 3.2.0
1+
openapi: "3.2"
22
info:
33
title: API
44
version: 1.0.0

tests/schema/pass/minimal_hooks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
openapi: 3.2.0
1+
openapi: "3.2"
22
info:
33
title: API
44
version: 1.0.0

tests/schema/pass/minimal_paths.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
openapi: 3.2.0
1+
openapi: "3.2"
22
info:
33
title: API
44
version: 1.0.0

0 commit comments

Comments
 (0)