Skip to content

Commit c3c9c98

Browse files
committed
Upgrade swagger-core from version 2.2.43 to 2.2.45
1 parent 7ee1347 commit c3c9c98

File tree

61 files changed

+25935
-26622
lines changed

Some content is hidden

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

61 files changed

+25935
-26622
lines changed

springdoc-openapi-starter-common/src/main/java/org/springdoc/core/service/GenericParameterService.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -340,11 +340,7 @@ private void setSchema(io.swagger.v3.oas.annotations.Parameter parameterDoc, Com
340340
PrimitiveType primitiveType = PrimitiveType.fromTypeAndFormat(schema.getType(), schema.getFormat());
341341
if (primitiveType != null) {
342342
Schema<?> primitiveSchema = primitiveType.createProperty();
343-
if (schema.getDefault() instanceof String stringValue) {
344-
primitiveSchema.setDefault(propertyResolverUtils.resolve(stringValue, locale));
345-
} else {
346-
primitiveSchema.setDefault(schema.getDefault());
347-
}
343+
primitiveSchema.setDefault(schema.getDefault());
348344
if (primitiveSchema.getDefault() != null)
349345
schema.setDefault(primitiveSchema.getDefault());
350346
}

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

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -74,33 +74,21 @@
7474
"format": "uri"
7575
},
7676
"title": {
77-
"type": [
78-
"string",
79-
"null"
80-
]
77+
"type": "string"
8178
},
8279
"status": {
8380
"type": "integer",
8481
"format": "int32"
8582
},
8683
"detail": {
87-
"type": [
88-
"string",
89-
"null"
90-
]
84+
"type": "string"
9185
},
9286
"instance": {
93-
"type": [
94-
"string",
95-
"null"
96-
],
87+
"type": "string",
9788
"format": "uri"
9889
},
9990
"properties": {
100-
"type": [
101-
"object",
102-
"null"
103-
],
91+
"type": "object",
10492
"additionalProperties": {}
10593
}
10694
}

0 commit comments

Comments
 (0)