Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ import java.io.Serializable
){{/discriminator}}{{#parent}}{{^serializableModel}}{{^parcelizeModels}} : {{{parent}}}{{#isMapModel}}(){{/isMapModel}}{{#isArrayModel}}(){{/isArrayModel}}{{/parcelizeModels}}{{/serializableModel}}{{/parent}}{{#parent}}{{#serializableModel}}{{^parcelizeModels}} : {{{parent}}}{{#isMapModel}}(){{/isMapModel}}{{#isArrayModel}}(){{/isArrayModel}}, Serializable{{/parcelizeModels}}{{/serializableModel}}{{/parent}}{{#parent}}{{^serializableModel}}{{#parcelizeModels}} : {{{parent}}}{{#isMapModel}}(){{/isMapModel}}{{#isArrayModel}}(){{/isArrayModel}}, Parcelable{{/parcelizeModels}}{{/serializableModel}}{{/parent}}{{#parent}}{{#serializableModel}}{{#parcelizeModels}} : {{{parent}}}{{#isMapModel}}(){{/isMapModel}}{{#isArrayModel}}(){{/isArrayModel}}, Serializable, Parcelable{{/parcelizeModels}}{{/serializableModel}}{{/parent}}{{^parent}}{{#serializableModel}}{{^parcelizeModels}} : Serializable{{/parcelizeModels}}{{/serializableModel}}{{/parent}}{{^parent}}{{^serializableModel}}{{#parcelizeModels}} : Parcelable{{/parcelizeModels}}{{/serializableModel}}{{/parent}}{{^parent}}{{#serializableModel}}{{#parcelizeModels}} : Serializable, Parcelable{{/parcelizeModels}}{{/serializableModel}}{{/parent}}{{#vendorExtensions.x-has-data-class-body}} {
{{/vendorExtensions.x-has-data-class-body}}
{{#serializableModel}}
{{#nonPublicApi}}internal {{/nonPublicApi}}companion object {
private const val serialVersionUID: Long = 123
}
{{#nonPublicApi}}internal {{/nonPublicApi}}companion object {
private const val serialVersionUID: Long = 123
}
{{/serializableModel}}
{{#discriminator}}{{#vars}}{{#required}}
{{>interface_req_var}}{{/required}}{{^required}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ import kotlinx.serialization.internal.CommonEnumSerializer

{{/enumVars}}{{/allowableValues}}

/**
This override toString avoids using the enum var name and uses the actual api value instead.
In cases the var name and value are different, the client would send incorrect enums to the server.
**/
override fun toString(): String {
/**
This override toString avoids using the enum var name and uses the actual api value instead.
In cases the var name and value are different, the client would send incorrect enums to the server.
**/
override fun toString(): String {
return value{{^isString}}.toString(){{/isString}}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ data class ApiResponse (
@SerializedName("message")
val message: kotlin.String? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ data class Category (
@SerializedName("name")
val name: kotlin.String? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ data class Order (
@SerializedName("complete")
val complete: kotlin.Boolean? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

/**
* Order Status
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ data class Pet (
@SerializedName("status")
val status: Pet.Status? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

/**
* pet status in the store
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ data class Tag (
@SerializedName("name")
val name: kotlin.String? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ data class User (
@SerializedName("userStatus")
val userStatus: kotlin.Int? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ data class ApiResponse (
@Json(name = "message")
val message: kotlin.String? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ data class Category (
@Json(name = "name")
val name: kotlin.String? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ data class Order (
@Json(name = "complete")
val complete: kotlin.Boolean? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

/**
* Order Status
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ data class Pet (
@Json(name = "status")
val status: Pet.Status? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

/**
* pet status in the store
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ data class Tag (
@Json(name = "name")
val name: kotlin.String? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ data class User (
@Json(name = "userStatus")
val userStatus: kotlin.Int? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ data class ApiResponse (
@Json(name = "message")
val message: kotlin.String? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ data class Category (
@Json(name = "name")
val name: kotlin.String? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ data class Order (
@Json(name = "complete")
val complete: kotlin.Boolean? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

/**
* Order Status
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ data class Pet (
@Json(name = "status")
val status: Pet.Status? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

/**
* pet status in the store
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ data class Tag (
@Json(name = "name")
val name: kotlin.String? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ data class User (
@Json(name = "userStatus")
val userStatus: kotlin.Int? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ data class ApiResponse (
@Json(name = "message")
val message: kotlin.String? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ data class Category (
@Json(name = "name")
val name: kotlin.String? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ data class Order (
@Json(name = "complete")
val complete: kotlin.Boolean? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

/**
* Order Status
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ data class Pet (
@Json(name = "status")
val status: Pet.Status? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

/**
* pet status in the store
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ data class Tag (
@Json(name = "name")
val name: kotlin.String? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ data class User (
@Json(name = "userStatus")
val userStatus: kotlin.Int? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
}
companion object {
private const val serialVersionUID: Long = 123
}

}

Loading