Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c785f6d

Browse files
Upgrade swagger-core to version 2.2.38
1 parent 3b76772 commit c785f6d

File tree

10 files changed

+15
-23
lines changed

10 files changed

+15
-23
lines changed

‎pom.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
<central-publishing-maven-plugin.version>0.7.0
5656
</central-publishing-maven-plugin.version>
5757
<flatten-maven-plugin.version>1.5.0</flatten-maven-plugin.version>
58-
<swagger-api.version>2.2.36</swagger-api.version>
58+
<swagger-api.version>2.2.38</swagger-api.version>
5959
<swagger-ui.version>5.28.1</swagger-ui.version>
6060
<gmavenplus-plugin.version>1.13.1</gmavenplus-plugin.version>
6161
<jjwt.version>0.9.1</jjwt.version>

‎springdoc-openapi-starter-webmvc-api/src/test/java/test/org/springdoc/api/v31/app26/MyModel.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
public class MyModel {
3030

31-
@Schema(description = "Hello", type = "object", oneOf = { Foo.class, Bar.class })
31+
@Schema(description = "Hello", types = "object", oneOf = { Foo.class, Bar.class })
3232
private Object thing;
3333

3434
public Object getThing() {

‎springdoc-openapi-starter-webmvc-api/src/test/java/test/org/springdoc/api/v31/app29/TrackerData.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public class TrackerData {
4040
@JsonProperty("timestamp")
4141
Instant timestamp;
4242

43-
@Schema(name = "value", type = "number", format = "double", description = "The data value", required = true, example = "19.0")
43+
@Schema(name = "value", types = "number", format = "double", description = "The data value", required = true, example = "19.0")
4444
@JsonProperty("value")
4545
Double value;
4646

‎springdoc-openapi-starter-webmvc-api/src/test/java/test/org/springdoc/api/v31/app4/TrackerData.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class TrackerData {
3939
@JsonProperty("timestamp")
4040
Instant timestamp;
4141

42-
@Schema(name = "value", type = "number", format = "double", description = "The data value", required = true, example = "19.0")
42+
@Schema(name = "value", types = "number", format = "double", description = "The data value", required = true, example = "19.0")
4343
@JsonProperty("value")
4444
Double value;
4545

‎springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app164.json‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,12 @@
4949
"booleanValueAsFourthParameter": {
5050
"type": "boolean"
5151
},
52-
"listBlah": {
53-
"type": "array",
54-
"items": {
55-
"description": "test"
52+
"listBlah" : {
53+
"type" : "array",
54+
"description" : "test",
55+
"items" : {
56+
"type" : "string",
57+
"description" : "test"
5658
}
5759
}
5860
}

‎springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app26.json‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,9 @@
6464
"type": "object",
6565
"properties": {
6666
"thing": {
67+
"type" : "object",
6768
"description": "Hello",
6869
"oneOf": [
69-
{
70-
"$ref": "#/components/schemas/Foo"
71-
},
72-
{
73-
"$ref": "#/components/schemas/Bar"
74-
},
7570
{
7671
"$ref": "#/components/schemas/Foo"
7772
},

‎springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/java/test/org/springdoc/api/v31/app26/MyModel.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class MyModel {
3636
/**
3737
* The Thing.
3838
*/
39-
@Schema(description = "Hello", type = "object", oneOf = { Foo.class, Bar.class })
39+
@Schema(description = "Hello", types = "object", oneOf = { Foo.class, Bar.class })
4040
private Object thing;
4141

4242
/**

‎springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/java/test/org/springdoc/api/v31/app29/TrackerData.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class TrackerData {
5454
/**
5555
* The Value.
5656
*/
57-
@Schema(name = "value", type = "number", format = "double", description = "The data value", required = true, example = "19.0")
57+
@Schema(name = "value", types = "number", format = "double", description = "The data value", required = true, example = "19.0")
5858
@JsonProperty("value")
5959
Double value;
6060

‎springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/java/test/org/springdoc/api/v31/app4/TrackerData.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class TrackerData {
5353
/**
5454
* The Value.
5555
*/
56-
@Schema(name = "value", type = "number", format = "double", description = "The data value", required = true, example = "19.0")
56+
@Schema(name = "value", types = "number", format = "double", description = "The data value", required = true, example = "19.0")
5757
@JsonProperty("value")
5858
Double value;
5959

‎springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.1.0/app26.json‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,9 @@
7878
"description": "The type My model.",
7979
"properties": {
8080
"thing": {
81+
"type": "object",
8182
"description": "Hello",
8283
"oneOf": [
83-
{
84-
"$ref": "#/components/schemas/Foo"
85-
},
86-
{
87-
"$ref": "#/components/schemas/Bar"
88-
},
8984
{
9085
"$ref": "#/components/schemas/Foo"
9186
},

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /