Skip to content

Commit 5cfd8fb

Browse files
fix "openapi" field to accept 3.3 versions, in schema and tests
1 parent 7a5e380 commit 5cfd8fb

File tree

58 files changed

+61
-61
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+61
-61
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\.3\.\d+(-.+)?$'
1111
$self:
1212
type: string
1313
format: uri-reference

tests/schema/fail/encoding-enc-item-exclusion.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.3.0
22
info:
33
title: API
44
version: 1.0.0

tests/schema/fail/encoding-enc-prefix-exclusion.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.3.0
22
info:
33
title: API
44
version: 1.0.0

tests/schema/fail/example-examples.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.3.0
22

33
# this example should fail, as example cannot be used together with examples.
44

tests/schema/fail/example-object-old-exclusions.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.3.0
22
info:
33
title: API
44
version: 1.0.0

tests/schema/fail/example-object-old-vs-data.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.3.0
22
info:
33
title: API
44
version: 1.0.0

tests/schema/fail/example-object-old-vs-ser.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.3.0
22
info:
33
title: API
44
version: 1.0.0

tests/schema/fail/example-object-ser-exclusions.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.3.0
22
info:
33
title: API
44
version: 1.0.0

tests/schema/fail/invalid_schema_types.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.3.0
22

33
# this example shows invalid types for the schemaObject
44

tests/schema/fail/media-type-enc-item-exclusion.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.3.0
22
info:
33
title: API
44
version: 1.0.0

0 commit comments

Comments
 (0)