Skip to content

Commit c39f45e

Browse files
committed
Minor changes
1 parent caabbf8 commit c39f45e

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

tests/schema/fail/$self-no-string.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
openapi: 3.2.0
2-
$self: 42 # must be a string, must be a number
2+
$self: 42 # must be a string, not a number
33
info:
44
title: API
55
version: 1.0.0

tests/schema/fail/invalid-components.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ components:
140140
invalid:
141141
summary: true # must be a string
142142
description: true # must be a string
143+
serializedValue: true # must be a string
143144
externalValue: true # must be a string
144145
responses:
145146
no-object: true # must be an object
@@ -166,4 +167,7 @@ components:
166167
explode: yes # must be a boolean
167168
allowReserved: no # must be a boolean
168169
encoding: true # must be an object
169-
prefixEncoding: true # must be an array
170+
prefixEncoding: {} # must be an array
171+
mediaTypes:
172+
invalid-prefixEncoding:
173+
prefixEncoding: {} # must be an array

tests/schema/fail/jsonSchemaDialect-no-string.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
openapi: 3.2.0
2-
jsonSchemaDialect: 42 # must be a string, must be a number
2+
jsonSchemaDialect: 42 # must be a string, not a number
33
info:
44
title: API
55
version: 1.0.0

tests/schema/fail/openapi-no-string.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
openapi: 4.2 # must be a string, must be a number
1+
openapi: 4.2 # must be a string, not a number
22
info:
33
title: API
44
version: 1.0.0

tests/schema/fail/path-item-object-conflicting-additional-operation.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ paths:
66
/pets/{id}:
77
additionalOperations:
88
POST:
9-
description: must be allowed, use `post` next to `additionalOperations`
9+
description: not allowed, use `post` next to `additionalOperations`

0 commit comments

Comments
 (0)