Skip to content

Commit 904873e

Browse files
authored
Merge pull request #4909 from notEthan/oad-schema-querystring-forbid-siblings
OAD schema fix 'parameter object' + in: querystring forbidden fields
2 parents b3b4233 + 3f1df3f commit 904873e

File tree

3 files changed

+25
-6
lines changed

3 files changed

+25
-6
lines changed

src/schemas/validation/schema.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -392,12 +392,6 @@ $defs:
392392
then:
393393
required:
394394
- content
395-
not:
396-
required:
397-
- schema
398-
- style
399-
- explode
400-
- allowReserved
401395
dependentSchemas:
402396
schema:
403397
properties:
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
openapi: 3.2.0
2+
info:
3+
title: API
4+
version: 1.0.0
5+
components:
6+
parameters:
7+
content-not-with-style:
8+
in: querystring
9+
name: json
10+
content:
11+
application/json:
12+
schema:
13+
type: object
14+
style: simple
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
openapi: 3.2.0
2+
info:
3+
title: API
4+
version: 1.0.0
5+
components:
6+
parameters:
7+
querystring-not-with-schema:
8+
in: querystring
9+
name: json
10+
schema:
11+
type: object

0 commit comments

Comments
 (0)