Skip to content

Commit db32192

Browse files
committed
Merge branch 'bugfix/2275-missing-description-kotlin' of https://github.com/GeorgEchterling/springdoc-openapi into GeorgEchterling-bugfix/2275-missing-description-kotlin
2 parents b8d3453 + 47039bc commit db32192

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

springdoc-openapi-starter-common/src/main/java/org/springdoc/core/configuration/SpringDocKotlinConfiguration.kt

-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ class SpringDocKotlinConfiguration() {
4444
init {
4545
SpringDocUtils.getConfig()
4646
.addRequestWrapperToIgnore(Continuation::class.java)
47-
.replaceWithSchema(ByteArray::class.java, ByteArraySchema())
4847
.addDeprecatedType(Deprecated::class.java)
4948
}
5049

springdoc-openapi-tests/springdoc-openapi-kotlin-webflux-tests/src/test/kotlin/test/org/springdoc/api/app6/ByteArrayController.kt

+5-1
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,15 @@
1818

1919
package test.org.springdoc.api.app6
2020

21+
import io.swagger.v3.oas.annotations.media.Schema
2122
import org.springframework.web.bind.annotation.GetMapping
2223
import org.springframework.web.bind.annotation.RequestMapping
2324
import org.springframework.web.bind.annotation.RestController
2425

25-
data class Foo(val data: ByteArray)
26+
data class Foo(
27+
@Schema(description = "Some description about a byte array.")
28+
val data: ByteArray
29+
)
2630

2731
@RestController
2832
@RequestMapping("/bytearray")

springdoc-openapi-tests/springdoc-openapi-kotlin-webflux-tests/src/test/resources/results/app6.json

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"properties": {
4343
"data": {
4444
"type": "string",
45+
"description":"Some description about a byte array.",
4546
"format": "byte"
4647
}
4748
}

0 commit comments

Comments
 (0)