Skip to content

Commit bd2a2a6

Browse files
committed
add OpenAPI 3.2 to integration tests
1 parent 553ac5c commit bd2a2a6

File tree

169 files changed

+2779
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

169 files changed

+2779
-1
lines changed

openapi-processor-core/src/testInt/resources/tests/annotation-mapping-class/inputs.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ items:
33
- inputs/mapping.yaml
44
- inputs/openapi30.yaml
55
- inputs/openapi31.yaml
6+
- inputs/openapi32.yaml
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
openapi: 3.2.0
2+
info:
3+
title: annotation mapping with class parameter
4+
version: 1.0.0
5+
paths:
6+
/foo:
7+
get:
8+
responses:
9+
"200":
10+
description: the foo result
11+
content:
12+
application/json:
13+
schema:
14+
$ref: "#/components/schemas/Foo"
15+
components:
16+
schemas:
17+
Foo:
18+
type: object
19+
properties:
20+
bar:
21+
type: string
22+
format: foo

openapi-processor-core/src/testInt/resources/tests/bean-validation-allof-required/inputs.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ prefix: api
22
items:
33
- inputs/openapi30.yaml
44
- inputs/openapi31.yaml
5+
- inputs/openapi32.yaml
56
- inputs/query.yaml
67
- inputs/query-2.yaml
78
- inputs/mapping.yaml
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
openapi: 3.2.0
2+
info:
3+
title: merge allOf into same object
4+
version: 1.0.0
5+
paths:
6+
/query:
7+
$ref: query.yaml
8+
/query-2:
9+
$ref: query-2.yaml

openapi-processor-core/src/testInt/resources/tests/bean-validation-iterable/inputs.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ prefix: api
22
items:
33
- inputs/openapi30.yaml
44
- inputs/openapi31.yaml
5+
- inputs/openapi32.yaml
56
- inputs/foo.yaml
67
- inputs/fooL.yaml
78
- inputs/resources.yaml
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
openapi: 3.2.0
2+
info:
3+
title: bean-validation iterable
4+
version: 1.0.0
5+
paths:
6+
/foo:
7+
$ref: foo.yaml
8+
/fooL:
9+
$ref: fooL.yaml

openapi-processor-core/src/testInt/resources/tests/bean-validation-jakarta/inputs.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ prefix: api
22
items:
33
- inputs/openapi30.yaml
44
- inputs/openapi31.yaml
5+
- inputs/openapi32.yaml
56
- inputs/mapping.yaml
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
openapi: 3.2.0
2+
info:
3+
title: bean validation jakarta/v3
4+
version: 1.0.0
5+
paths:
6+
/foo:
7+
get:
8+
requestBody:
9+
content:
10+
application/json:
11+
schema:
12+
$ref: "#/components/schemas/Foo"
13+
responses:
14+
"204":
15+
description: empty
16+
components:
17+
schemas:
18+
Foo:
19+
type: object
20+
properties:
21+
bar:
22+
type: string
23+
maxLength: 10

openapi-processor-core/src/testInt/resources/tests/bean-validation-list-item-import/inputs.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ prefix: api
22
items:
33
- inputs/openapi30.yaml
44
- inputs/openapi31.yaml
5+
- inputs/openapi32.yaml
56
- inputs/mapping.yaml
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
openapi: 3.2.0
2+
info:
3+
title: Bean Validation API
4+
version: 1.0.0
5+
paths:
6+
/test:
7+
get:
8+
parameters:
9+
- in: query
10+
name: patternParam
11+
required: false
12+
description: query parameter with @Pattern annotation
13+
schema:
14+
$ref: "#/components/schemas/PatternParam"
15+
responses:
16+
"200":
17+
description: ok
18+
components:
19+
schemas:
20+
PatternParam:
21+
type: array
22+
items:
23+
type: string
24+
pattern: .*

0 commit comments

Comments
 (0)