Skip to content

Commit 21010ce

Browse files
allow the use of in: cookie, style: cookie
1 parent 14528c9 commit 21010ce

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/schemas/validation/schema.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,9 @@ $defs:
485485
properties:
486486
style:
487487
default: form
488-
const: form
488+
enum:
489+
- form
490+
- cookie
489491

490492
unevaluatedProperties: false
491493

tests/schema/pass/parameter-object-examples.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,14 @@ paths:
5252
type: number
5353
long:
5454
type: number
55+
- in: cookie
56+
name: my_cookie1
57+
style: form
58+
schema: {}
59+
- in: cookie
60+
name: my_cookie2
61+
style: cookie
62+
schema: {}
5563
/user:
5664
parameters:
5765
- in: querystring

0 commit comments

Comments
 (0)