diff --git a/gradle.properties b/gradle.properties index 6382709..d44b9c6 100644 --- a/gradle.properties +++ b/gradle.properties @@ -19,7 +19,7 @@ projectDeveloperUrl=https://github.com/SMILEY4 versionKtor=2.3.11 versionSwaggerUI=5.17.11 versionSwaggerParser=2.1.22 -versionSchemaKenerator=1.2.1 +versionSchemaKenerator=1.2.2 versionKotlinLogging=3.0.5 versionKotest=5.8.0 versionKotlinTest=1.8.21 diff --git a/ktor-swagger-ui/src/test/kotlin/io/github/smiley4/ktorswaggerui/builder/OperationBuilderTest.kt b/ktor-swagger-ui/src/test/kotlin/io/github/smiley4/ktorswaggerui/builder/OperationBuilderTest.kt index dca9b56..2f15f72 100644 --- a/ktor-swagger-ui/src/test/kotlin/io/github/smiley4/ktorswaggerui/builder/OperationBuilderTest.kt +++ b/ktor-swagger-ui/src/test/kotlin/io/github/smiley4/ktorswaggerui/builder/OperationBuilderTest.kt @@ -219,11 +219,11 @@ class OperationBuilderTest : StringSpec({ param.description shouldBe null param.required shouldBe false param.deprecated shouldBe false - param.allowEmptyValue shouldBe true + param.allowEmptyValue shouldBe null param.`$ref` shouldBe null param.style shouldBe null param.explode shouldBe false - param.allowReserved shouldBe true + param.allowReserved shouldBe null param.schema .also { it.shouldNotBeNull() } ?.also { it.type = "string" } @@ -239,11 +239,11 @@ class OperationBuilderTest : StringSpec({ param.description shouldBe null param.required shouldBe true param.deprecated shouldBe false - param.allowEmptyValue shouldBe true + param.allowEmptyValue shouldBe null param.`$ref` shouldBe null param.style shouldBe null param.explode shouldBe false - param.allowReserved shouldBe true + param.allowReserved shouldBe null param.schema .also { it.shouldNotBeNull() } ?.also { it.type = "integer" } @@ -259,11 +259,11 @@ class OperationBuilderTest : StringSpec({ param.description shouldBe null param.required shouldBe false param.deprecated shouldBe false - param.allowEmptyValue shouldBe true + param.allowEmptyValue shouldBe null param.`$ref` shouldBe null param.style shouldBe null param.explode shouldBe false - param.allowReserved shouldBe true + param.allowReserved shouldBe null param.schema .also { it.shouldNotBeNull() } ?.also { it.type = "boolean" }