Skip to content

Commit 31ab5ee

Browse files
committed
fix after merge
1 parent 7a77e3c commit 31ab5ee

48 files changed

Lines changed: 1154 additions & 300 deletions

File tree

Some content is hidden

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

samples/server/petstore/kotlin-spring-declarative-interface-reactive-coroutines/src/main/kotlin/org/openapitools/model/Category.kt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,14 @@ import io.swagger.v3.oas.annotations.media.Schema
2222
*/
2323
data class Category(
2424

25-
@Schema(example = "null", description = "")
26-
@get:JsonProperty("id") val id: kotlin.Long? = null,
25+
@Schema(example = "null", required = false, description = "")
26+
@get:JsonProperty("id", required = false)
27+
val id: kotlin.Long? = null,
2728

2829
@get:Pattern(regexp="^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$")
29-
@Schema(example = "null", description = "")
30-
@get:JsonProperty("name") val name: kotlin.String? = null
30+
@Schema(example = "null", required = false, description = "")
31+
@get:JsonProperty("name", required = false)
32+
val name: kotlin.String? = null
3133
) : Serializable {
3234

3335
companion object {

samples/server/petstore/kotlin-spring-declarative-interface-reactive-coroutines/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,17 @@ import io.swagger.v3.oas.annotations.media.Schema
2323
*/
2424
data class ModelApiResponse(
2525

26-
@Schema(example = "null", description = "")
27-
@get:JsonProperty("code") val code: kotlin.Int? = null,
26+
@Schema(example = "null", required = false, description = "")
27+
@get:JsonProperty("code", required = false)
28+
val code: kotlin.Int? = null,
2829

29-
@Schema(example = "null", description = "")
30-
@get:JsonProperty("type") val type: kotlin.String? = null,
30+
@Schema(example = "null", required = false, description = "")
31+
@get:JsonProperty("type", required = false)
32+
val type: kotlin.String? = null,
3133

32-
@Schema(example = "null", description = "")
33-
@get:JsonProperty("message") val message: kotlin.String? = null
34+
@Schema(example = "null", required = false, description = "")
35+
@get:JsonProperty("message", required = false)
36+
val message: kotlin.String? = null
3437
) : Serializable {
3538

3639
companion object {

samples/server/petstore/kotlin-spring-declarative-interface-reactive-coroutines/src/main/kotlin/org/openapitools/model/Order.kt

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,23 +28,29 @@ import io.swagger.v3.oas.annotations.media.Schema
2828
*/
2929
data class Order(
3030

31-
@Schema(example = "null", description = "")
32-
@get:JsonProperty("id") val id: kotlin.Long? = null,
31+
@Schema(example = "null", required = false, description = "")
32+
@get:JsonProperty("id", required = false)
33+
val id: kotlin.Long? = null,
3334

34-
@Schema(example = "null", description = "")
35-
@get:JsonProperty("petId") val petId: kotlin.Long? = null,
35+
@Schema(example = "null", required = false, description = "")
36+
@get:JsonProperty("petId", required = false)
37+
val petId: kotlin.Long? = null,
3638

37-
@Schema(example = "null", description = "")
38-
@get:JsonProperty("quantity") val quantity: kotlin.Int? = null,
39+
@Schema(example = "null", required = false, description = "")
40+
@get:JsonProperty("quantity", required = false)
41+
val quantity: kotlin.Int? = null,
3942

40-
@Schema(example = "null", description = "")
41-
@get:JsonProperty("shipDate") val shipDate: java.time.OffsetDateTime? = null,
43+
@Schema(example = "null", required = false, description = "")
44+
@get:JsonProperty("shipDate", required = false)
45+
val shipDate: java.time.OffsetDateTime? = null,
4246

43-
@Schema(example = "null", description = "Order Status")
44-
@get:JsonProperty("status") val status: Order.Status? = null,
47+
@Schema(example = "null", required = false, description = "Order Status")
48+
@get:JsonProperty("status", required = false)
49+
val status: Order.Status? = null,
4550

46-
@Schema(example = "null", description = "")
47-
@get:JsonProperty("complete") val complete: kotlin.Boolean? = false
51+
@Schema(example = "null", required = false, description = "")
52+
@get:JsonProperty("complete", required = false)
53+
val complete: kotlin.Boolean = false
4854
) : Serializable {
4955

5056
/**

samples/server/petstore/kotlin-spring-declarative-interface-reactive-coroutines/src/main/kotlin/org/openapitools/model/Pet.kt

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,25 +31,31 @@ import io.swagger.v3.oas.annotations.media.Schema
3131
data class Pet(
3232

3333
@Schema(example = "doggie", required = true, description = "")
34-
@get:JsonProperty("name", required = true) val name: kotlin.String,
34+
@get:JsonProperty("name", required = true)
35+
val name: kotlin.String,
3536

3637
@Schema(example = "null", required = true, description = "")
37-
@get:JsonProperty("photoUrls", required = true) val photoUrls: kotlin.collections.List<kotlin.String>,
38+
@get:JsonProperty("photoUrls", required = true)
39+
val photoUrls: kotlin.collections.List<kotlin.String>,
3840

39-
@Schema(example = "null", description = "")
40-
@get:JsonProperty("id") val id: kotlin.Long? = null,
41+
@Schema(example = "null", required = false, description = "")
42+
@get:JsonProperty("id", required = false)
43+
val id: kotlin.Long? = null,
4144

4245
@field:Valid
43-
@Schema(example = "null", description = "")
44-
@get:JsonProperty("category") val category: Category? = null,
46+
@Schema(example = "null", required = false, description = "")
47+
@get:JsonProperty("category", required = false)
48+
val category: Category? = null,
4549

4650
@field:Valid
47-
@Schema(example = "null", description = "")
48-
@get:JsonProperty("tags") val tags: kotlin.collections.List<Tag>? = null,
51+
@Schema(example = "null", required = false, description = "")
52+
@get:JsonProperty("tags", required = false)
53+
val tags: kotlin.collections.List<Tag>? = null,
4954

50-
@Schema(example = "null", description = "pet status in the store")
55+
@Schema(example = "null", required = false, description = "pet status in the store")
5156
@Deprecated(message = "")
52-
@get:JsonProperty("status") val status: Pet.Status? = null
57+
@get:JsonProperty("status", required = false)
58+
val status: Pet.Status? = null
5359
) : Serializable {
5460

5561
/**

samples/server/petstore/kotlin-spring-declarative-interface-reactive-coroutines/src/main/kotlin/org/openapitools/model/Tag.kt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,13 @@ import io.swagger.v3.oas.annotations.media.Schema
2222
*/
2323
data class Tag(
2424

25-
@Schema(example = "null", description = "")
26-
@get:JsonProperty("id") val id: kotlin.Long? = null,
25+
@Schema(example = "null", required = false, description = "")
26+
@get:JsonProperty("id", required = false)
27+
val id: kotlin.Long? = null,
2728

28-
@Schema(example = "null", description = "")
29-
@get:JsonProperty("name") val name: kotlin.String? = null
29+
@Schema(example = "null", required = false, description = "")
30+
@get:JsonProperty("name", required = false)
31+
val name: kotlin.String? = null
3032
) : Serializable {
3133

3234
companion object {

samples/server/petstore/kotlin-spring-declarative-interface-reactive-coroutines/src/main/kotlin/org/openapitools/model/User.kt

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -28,29 +28,37 @@ import io.swagger.v3.oas.annotations.media.Schema
2828
*/
2929
data class User(
3030

31-
@Schema(example = "null", description = "")
32-
@get:JsonProperty("id") val id: kotlin.Long? = null,
31+
@Schema(example = "null", required = false, description = "")
32+
@get:JsonProperty("id", required = false)
33+
val id: kotlin.Long? = null,
3334

34-
@Schema(example = "null", description = "")
35-
@get:JsonProperty("username") val username: kotlin.String? = null,
35+
@Schema(example = "null", required = false, description = "")
36+
@get:JsonProperty("username", required = false)
37+
val username: kotlin.String? = null,
3638

37-
@Schema(example = "null", description = "")
38-
@get:JsonProperty("firstName") val firstName: kotlin.String? = null,
39+
@Schema(example = "null", required = false, description = "")
40+
@get:JsonProperty("firstName", required = false)
41+
val firstName: kotlin.String? = null,
3942

40-
@Schema(example = "null", description = "")
41-
@get:JsonProperty("lastName") val lastName: kotlin.String? = null,
43+
@Schema(example = "null", required = false, description = "")
44+
@get:JsonProperty("lastName", required = false)
45+
val lastName: kotlin.String? = null,
4246

43-
@Schema(example = "null", description = "")
44-
@get:JsonProperty("email") val email: kotlin.String? = null,
47+
@Schema(example = "null", required = false, description = "")
48+
@get:JsonProperty("email", required = false)
49+
val email: kotlin.String? = null,
4550

46-
@Schema(example = "null", description = "")
47-
@get:JsonProperty("password") val password: kotlin.String? = null,
51+
@Schema(example = "null", required = false, description = "")
52+
@get:JsonProperty("password", required = false)
53+
val password: kotlin.String? = null,
4854

49-
@Schema(example = "null", description = "")
50-
@get:JsonProperty("phone") val phone: kotlin.String? = null,
55+
@Schema(example = "null", required = false, description = "")
56+
@get:JsonProperty("phone", required = false)
57+
val phone: kotlin.String? = null,
5158

52-
@Schema(example = "null", description = "User Status")
53-
@get:JsonProperty("userStatus") val userStatus: kotlin.Int? = null
59+
@Schema(example = "null", required = false, description = "User Status")
60+
@get:JsonProperty("userStatus", required = false)
61+
val userStatus: kotlin.Int? = null
5462
) : Serializable {
5563

5664
companion object {

samples/server/petstore/kotlin-spring-declarative-interface-reactive-reactor-wrapped/src/main/kotlin/org/openapitools/model/Category.kt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,14 @@ import io.swagger.v3.oas.annotations.media.Schema
2222
*/
2323
data class Category(
2424

25-
@Schema(example = "null", description = "")
26-
@get:JsonProperty("id") val id: kotlin.Long? = null,
25+
@Schema(example = "null", required = false, description = "")
26+
@get:JsonProperty("id", required = false)
27+
val id: kotlin.Long? = null,
2728

2829
@get:Pattern(regexp="^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$")
29-
@Schema(example = "null", description = "")
30-
@get:JsonProperty("name") val name: kotlin.String? = null
30+
@Schema(example = "null", required = false, description = "")
31+
@get:JsonProperty("name", required = false)
32+
val name: kotlin.String? = null
3133
) : Serializable {
3234

3335
companion object {

samples/server/petstore/kotlin-spring-declarative-interface-reactive-reactor-wrapped/src/main/kotlin/org/openapitools/model/ModelApiResponse.kt

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,17 @@ import io.swagger.v3.oas.annotations.media.Schema
2323
*/
2424
data class ModelApiResponse(
2525

26-
@Schema(example = "null", description = "")
27-
@get:JsonProperty("code") val code: kotlin.Int? = null,
26+
@Schema(example = "null", required = false, description = "")
27+
@get:JsonProperty("code", required = false)
28+
val code: kotlin.Int? = null,
2829

29-
@Schema(example = "null", description = "")
30-
@get:JsonProperty("type") val type: kotlin.String? = null,
30+
@Schema(example = "null", required = false, description = "")
31+
@get:JsonProperty("type", required = false)
32+
val type: kotlin.String? = null,
3133

32-
@Schema(example = "null", description = "")
33-
@get:JsonProperty("message") val message: kotlin.String? = null
34+
@Schema(example = "null", required = false, description = "")
35+
@get:JsonProperty("message", required = false)
36+
val message: kotlin.String? = null
3437
) : Serializable {
3538

3639
companion object {

samples/server/petstore/kotlin-spring-declarative-interface-reactive-reactor-wrapped/src/main/kotlin/org/openapitools/model/Order.kt

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,23 +28,29 @@ import io.swagger.v3.oas.annotations.media.Schema
2828
*/
2929
data class Order(
3030

31-
@Schema(example = "null", description = "")
32-
@get:JsonProperty("id") val id: kotlin.Long? = null,
31+
@Schema(example = "null", required = false, description = "")
32+
@get:JsonProperty("id", required = false)
33+
val id: kotlin.Long? = null,
3334

34-
@Schema(example = "null", description = "")
35-
@get:JsonProperty("petId") val petId: kotlin.Long? = null,
35+
@Schema(example = "null", required = false, description = "")
36+
@get:JsonProperty("petId", required = false)
37+
val petId: kotlin.Long? = null,
3638

37-
@Schema(example = "null", description = "")
38-
@get:JsonProperty("quantity") val quantity: kotlin.Int? = null,
39+
@Schema(example = "null", required = false, description = "")
40+
@get:JsonProperty("quantity", required = false)
41+
val quantity: kotlin.Int? = null,
3942

40-
@Schema(example = "null", description = "")
41-
@get:JsonProperty("shipDate") val shipDate: java.time.OffsetDateTime? = null,
43+
@Schema(example = "null", required = false, description = "")
44+
@get:JsonProperty("shipDate", required = false)
45+
val shipDate: java.time.OffsetDateTime? = null,
4246

43-
@Schema(example = "null", description = "Order Status")
44-
@get:JsonProperty("status") val status: Order.Status? = null,
47+
@Schema(example = "null", required = false, description = "Order Status")
48+
@get:JsonProperty("status", required = false)
49+
val status: Order.Status? = null,
4550

46-
@Schema(example = "null", description = "")
47-
@get:JsonProperty("complete") val complete: kotlin.Boolean? = false
51+
@Schema(example = "null", required = false, description = "")
52+
@get:JsonProperty("complete", required = false)
53+
val complete: kotlin.Boolean = false
4854
) : Serializable {
4955

5056
/**

samples/server/petstore/kotlin-spring-declarative-interface-reactive-reactor-wrapped/src/main/kotlin/org/openapitools/model/Pet.kt

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,25 +31,31 @@ import io.swagger.v3.oas.annotations.media.Schema
3131
data class Pet(
3232

3333
@Schema(example = "doggie", required = true, description = "")
34-
@get:JsonProperty("name", required = true) val name: kotlin.String,
34+
@get:JsonProperty("name", required = true)
35+
val name: kotlin.String,
3536

3637
@Schema(example = "null", required = true, description = "")
37-
@get:JsonProperty("photoUrls", required = true) val photoUrls: kotlin.collections.List<kotlin.String>,
38+
@get:JsonProperty("photoUrls", required = true)
39+
val photoUrls: kotlin.collections.List<kotlin.String>,
3840

39-
@Schema(example = "null", description = "")
40-
@get:JsonProperty("id") val id: kotlin.Long? = null,
41+
@Schema(example = "null", required = false, description = "")
42+
@get:JsonProperty("id", required = false)
43+
val id: kotlin.Long? = null,
4144

4245
@field:Valid
43-
@Schema(example = "null", description = "")
44-
@get:JsonProperty("category") val category: Category? = null,
46+
@Schema(example = "null", required = false, description = "")
47+
@get:JsonProperty("category", required = false)
48+
val category: Category? = null,
4549

4650
@field:Valid
47-
@Schema(example = "null", description = "")
48-
@get:JsonProperty("tags") val tags: kotlin.collections.List<Tag>? = null,
51+
@Schema(example = "null", required = false, description = "")
52+
@get:JsonProperty("tags", required = false)
53+
val tags: kotlin.collections.List<Tag>? = null,
4954

50-
@Schema(example = "null", description = "pet status in the store")
55+
@Schema(example = "null", required = false, description = "pet status in the store")
5156
@Deprecated(message = "")
52-
@get:JsonProperty("status") val status: Pet.Status? = null
57+
@get:JsonProperty("status", required = false)
58+
val status: Pet.Status? = null
5359
) : Serializable {
5460

5561
/**

0 commit comments

Comments
 (0)