File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
main/kotlin/io/github/smiley4/ktoropenapi/builder/openapi
test/kotlin/io/github/smiley4/ktorswaggerui/builder Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ kotlin.code.style=official
22
33# project id
44projectGroupId =io.github.smiley4
5- projectVersion =5.0.1
5+ projectVersion =5.0.2
66
77# common publishing information
88projectBaseScmUrl =https://github.com/SMILEY4/
@@ -16,7 +16,7 @@ projectDeveloperUrl=https://github.com/SMILEY4
1616versionKtor =3.1.1
1717versionSwaggerUI =5.17.14
1818versionSwaggerParser =2.1.24
19- versionSchemaKenerator =2.1.1
19+ versionSchemaKenerator =2.1.2
2020versionKotlinLogging =7.0.0
2121versionKotest =5.8.0
2222versionKotlinTest =2.0.21
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ internal class ContentBuilder(
6666 private fun buildMultipartMediaType (body : MultipartBodyData ): MediaType {
6767 return MediaType ().also { mediaType ->
6868 mediaType.schema = Schema <Any >().also { schema ->
69- schema.type = " object"
69+ schema.types = setOf ( " object" )
7070 schema.properties = mutableMapOf<String ?, Schema <* >? > ().also { props ->
7171 body.parts.forEach { part ->
7272 props[part.name] = schemaContext.getSchema(part.type)
Original file line number Diff line number Diff line change @@ -585,7 +585,7 @@ class OperationBuilderTest : StringSpec({
585585 mediaType.schema
586586 .also { it.shouldNotBeNull() }
587587 ?.also { schema ->
588- schema.type shouldBe " object"
588+ schema.types shouldContainExactlyInAnyOrder listOf( "object")
589589 schema.properties.keys shouldContainExactlyInAnyOrder listOf(
590590 "image",
591591 "data"
@@ -995,7 +995,7 @@ class OperationBuilderTest : StringSpec({
995995 mediaType.schema
996996 .also { it.shouldNotBeNull() }
997997 ?.also { schema ->
998- schema.type shouldBe " object"
998+ schema.types shouldContainExactlyInAnyOrder listOf( "object")
999999 schema.properties.keys shouldContainExactlyInAnyOrder listOf("customData")
10001000 schema.properties[" customData" ]!!.`$ref` shouldBe " #/components/schemas/myCustomSchema"
10011001 }
You can’t perform that action at this time.
0 commit comments