Skip to content

Commit eb10cbc

Browse files
allow the use of in: cookie, style: cookie
1 parent 6b8a991 commit eb10cbc

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
@@ -476,7 +476,9 @@ $defs:
476476
properties:
477477
style:
478478
default: form
479-
const: form
479+
enum:
480+
- form
481+
- cookie
480482

481483
unevaluatedProperties: false
482484

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)