Skip to content

Commit 25f03d0

Browse files
allow the use of in: cookie, style: cookie
1 parent 63e0b15 commit 25f03d0

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
@@ -471,7 +471,9 @@ $defs:
471471
properties:
472472
style:
473473
default: form
474-
const: form
474+
enum:
475+
- form
476+
- cookie
475477

476478
unevaluatedProperties: false
477479

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)