Kotlin client/spacings indentations (#9853)

* Bump jimschubert/query-tag-action from 1 to 2

Bumps [jimschubert/query-tag-action](https://github.com/jimschubert/query-tag-action) from 1 to 2.
- [Release notes](https://github.com/jimschubert/query-tag-action/releases)
- [Commits](https://github.com/jimschubert/query-tag-action/compare/v1...v2)

Signed-off-by: dependabot[bot] <support@github.com>

* Adjust spacings, bring back suppresses to silence IntelliJ IDEs.

* Suppress few warnings since we know we are using them in the code.

* toLowerCase() is deprecated.

* Wrap enum values in backticks to guard against reserved names, bring back encode/decode for each enum.

* Wrap property names in backticks to guard against reserved names.

* Regenerate samples.

* Do not warn about unused imports.

* Regenerate samples.

* Updated petstore code.

* Add missing reserved Kotlin operators and special keywords.

* Revert adding backticks.

* Regenerate pet store shop code.

* Remove unused suppression.

* Use 3 braces to wrap name.

* Regenerate pet store shop code.

* Remove get from reserved words.

* Revert back removal of description.

* Regenerate source code for Petstore.

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
Noor Dawod
2021-08-02 11:38:22 +02:00
committed by GitHub
parent e5ce66aae6
commit e39e4bcd6e
143 changed files with 3423 additions and 1351 deletions

View File

@@ -1,14 +1,23 @@
/**
* OpenAPI Petstore
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* OpenAPI Petstore
*
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
*
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
@@ -19,18 +28,23 @@ import java.io.Serializable
/**
* Describes the result of uploading an image resource
*
* @param code
* @param type
* @param message
*/
@KSerializable
data class ApiResponse (
@SerialName(value = "code")
val code: kotlin.Int? = null,
@SerialName(value = "type")
val type: kotlin.String? = null,
@SerialName(value = "message")
val message: kotlin.String? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123

View File

@@ -1,14 +1,23 @@
/**
* OpenAPI Petstore
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* OpenAPI Petstore
*
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
*
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
@@ -19,15 +28,19 @@ import java.io.Serializable
/**
* A category for a pet
*
* @param id
* @param name
*/
@KSerializable
data class Category (
@SerialName(value = "id")
val id: kotlin.Long? = null,
@SerialName(value = "name")
val name: kotlin.String? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123

View File

@@ -1,14 +1,23 @@
/**
* OpenAPI Petstore
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* OpenAPI Petstore
*
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
*
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
@@ -19,6 +28,7 @@ import java.io.Serializable
/**
* An order for a pets from the pet store
*
* @param id
* @param petId
* @param quantity
@@ -28,19 +38,26 @@ import java.io.Serializable
*/
@KSerializable
data class Order (
@SerialName(value = "id")
val id: kotlin.Long? = null,
@SerialName(value = "petId")
val petId: kotlin.Long? = null,
@SerialName(value = "quantity")
val quantity: kotlin.Int? = null,
@Contextual @SerialName(value = "shipDate")
val shipDate: java.time.OffsetDateTime? = null,
/* Order Status */
@SerialName(value = "status")
val status: Order.Status? = null,
@SerialName(value = "complete")
val complete: kotlin.Boolean? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
@@ -48,6 +65,7 @@ data class Order (
/**
* Order Status
*
* Values: PLACED,APPROVED,DELIVERED
*/
@KSerializable

View File

@@ -1,14 +1,23 @@
/**
* OpenAPI Petstore
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* OpenAPI Petstore
*
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
*
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import org.openapitools.client.models.Category
@@ -21,6 +30,7 @@ import java.io.Serializable
/**
* A pet for sale in the pet store
*
* @param name
* @param photoUrls
* @param id
@@ -30,19 +40,26 @@ import java.io.Serializable
*/
@KSerializable
data class Pet (
@SerialName(value = "name")
val name: kotlin.String,
@SerialName(value = "photoUrls")
val photoUrls: kotlin.collections.List<kotlin.String>,
@SerialName(value = "id")
val id: kotlin.Long? = null,
@SerialName(value = "category")
val category: Category? = null,
@SerialName(value = "tags")
val tags: kotlin.collections.List<Tag>? = null,
/* pet status in the store */
@SerialName(value = "status")
val status: Pet.Status? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123
@@ -50,6 +67,7 @@ data class Pet (
/**
* pet status in the store
*
* Values: AVAILABLE,PENDING,SOLD
*/
@KSerializable

View File

@@ -1,14 +1,23 @@
/**
* OpenAPI Petstore
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* OpenAPI Petstore
*
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
*
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
@@ -19,15 +28,19 @@ import java.io.Serializable
/**
* A tag for a pet
*
* @param id
* @param name
*/
@KSerializable
data class Tag (
@SerialName(value = "id")
val id: kotlin.Long? = null,
@SerialName(value = "name")
val name: kotlin.String? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123

View File

@@ -1,14 +1,23 @@
/**
* OpenAPI Petstore
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* OpenAPI Petstore
*
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
*
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
@@ -19,6 +28,7 @@ import java.io.Serializable
/**
* A User who is purchasing from the pet store
*
* @param id
* @param username
* @param firstName
@@ -30,23 +40,32 @@ import java.io.Serializable
*/
@KSerializable
data class User (
@SerialName(value = "id")
val id: kotlin.Long? = null,
@SerialName(value = "username")
val username: kotlin.String? = null,
@SerialName(value = "firstName")
val firstName: kotlin.String? = null,
@SerialName(value = "lastName")
val lastName: kotlin.String? = null,
@SerialName(value = "email")
val email: kotlin.String? = null,
@SerialName(value = "password")
val password: kotlin.String? = null,
@SerialName(value = "phone")
val phone: kotlin.String? = null,
/* User Status */
@SerialName(value = "userStatus")
val userStatus: kotlin.Int? = null
) : Serializable {
companion object {
private const val serialVersionUID: Long = 123