File tree 2 files changed +12
-27
lines changed
springdoc-openapi-tests/springdoc-openapi-kotlin-webmvc-tests/src/test
kotlin/test/org/springdoc/api/app13
2 files changed +12
-27
lines changed Original file line number Diff line number Diff line change @@ -34,8 +34,8 @@ data class KeyValue(
34
34
35
35
@Schema
36
36
data class SomeDTO (
37
- @Schema(description = " Description A" , allOf = [ KeyValue :: class ] ) val fieldA : KeyValue ,
38
- @Schema(description = " Description B" , allOf = [ KeyValue :: class ] ) val fieldB : KeyValue ,
37
+ @Schema(description = " Description A" ) val fieldA : KeyValue ,
38
+ @Schema(description = " Description B" ) val fieldB : KeyValue ,
39
39
)
40
40
41
41
Original file line number Diff line number Diff line change 1
1
{
2
- "openapi" : " 3.0.1 " ,
2
+ "openapi" : " 3.1.0 " ,
3
3
"info" : {
4
4
"title" : " OpenAPI definition" ,
5
5
"version" : " v0"
37
37
"required" : [ " key" , " value" ],
38
38
"type" : " object" ,
39
39
"description" : " Generic description" ,
40
- "allOf" : [ {
41
- "$ref" : " #/components/schemas/KeyValue"
42
- }, {
43
- "type" : " object" ,
44
- "properties" : {
45
- "key" : {
46
- "type" : " string"
47
- },
48
- "value" : {
49
- "type" : " string"
50
- }
40
+ "properties" : {
41
+ "key" : {
42
+ "type" : " string"
43
+ },
44
+ "value" : {
45
+ "type" : " string"
51
46
}
52
- } ]
47
+ }
53
48
},
54
49
"SomeDTO" : {
55
50
"required" : [
59
54
"type" : " object" ,
60
55
"properties" : {
61
56
"fieldA" : {
62
- "type" : " object" ,
63
57
"description" : " Description A" ,
64
- "allOf" : [
65
- {
66
- "$ref" : " #/components/schemas/KeyValue"
67
- }
68
- ]
58
+ "$ref" : " #/components/schemas/KeyValue"
69
59
},
70
60
"fieldB" : {
71
- "type" : " object" ,
72
61
"description" : " Description B" ,
73
- "allOf" : [
74
- {
75
- "$ref" : " #/components/schemas/KeyValue"
76
- }
77
- ]
62
+ "$ref" : " #/components/schemas/KeyValue"
78
63
}
79
64
}
80
65
}
You can’t perform that action at this time.
0 commit comments