From a27a659b905a0961700fe7ecfb0d57607a720b21 Mon Sep 17 00:00:00 2001 From: Tobias Gesellchen Date: Thu, 12 Oct 2023 20:34:06 +0200 Subject: [PATCH] Respect JavaBeans convention --- api-model-v1-41/docs/ImageSearchResponseItem.md | 4 ++-- api-model-v1-41/openapi-generator-config.yaml | 3 +++ .../gesellix/docker/remote/api/ImageSearchResponseItem.kt | 8 ++++---- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/api-model-v1-41/docs/ImageSearchResponseItem.md b/api-model-v1-41/docs/ImageSearchResponseItem.md index fa8b2837..2ffed011 100644 --- a/api-model-v1-41/docs/ImageSearchResponseItem.md +++ b/api-model-v1-41/docs/ImageSearchResponseItem.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **description** | **kotlin.String** | | [optional] -**isOfficial** | **kotlin.Boolean** | | [optional] -**isAutomated** | **kotlin.Boolean** | Whether this repository has automated builds enabled. <p><br /></p> > **Deprecated**: This field is deprecated and will always > be \"false\" in future. | [optional] +**official** | **kotlin.Boolean** | | [optional] +**automated** | **kotlin.Boolean** | Whether this repository has automated builds enabled. <p><br /></p> > **Deprecated**: This field is deprecated and will always > be \"false\" in future. | [optional] **name** | **kotlin.String** | | [optional] **starCount** | **kotlin.Int** | | [optional] diff --git a/api-model-v1-41/openapi-generator-config.yaml b/api-model-v1-41/openapi-generator-config.yaml index 38daf0fe..dfb97aea 100644 --- a/api-model-v1-41/openapi-generator-config.yaml +++ b/api-model-v1-41/openapi-generator-config.yaml @@ -7,6 +7,9 @@ packageName: de.gesellix.docker.remote.api apiPackage: de.gesellix.docker.remote.client.api modelPackage: de.gesellix.docker.remote.api enumPropertyNaming: PascalCase +nameMappings: + is_official: official + is_automated: automated groupId: de.gesellix artifactId: docker-remote-api-model artifactVersion: 1.41 diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ImageSearchResponseItem.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ImageSearchResponseItem.kt index 92b084f3..8dc05f9d 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ImageSearchResponseItem.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ImageSearchResponseItem.kt @@ -22,8 +22,8 @@ import com.squareup.moshi.JsonClass * * * @param description - * @param isOfficial - * @param isAutomated Whether this repository has automated builds enabled.


> **Deprecated**: This field is deprecated and will always > be \"false\" in future. + * @param official + * @param automated Whether this repository has automated builds enabled.


> **Deprecated**: This field is deprecated and will always > be \"false\" in future. * @param name * @param starCount */ @@ -35,11 +35,11 @@ data class ImageSearchResponseItem( var description: kotlin.String? = null, @Json(name = "is_official") - var isOfficial: kotlin.Boolean? = null, + var official: kotlin.Boolean? = null, /* Whether this repository has automated builds enabled.


> **Deprecated**: This field is deprecated and will always > be \"false\" in future. */ @Json(name = "is_automated") - var isAutomated: kotlin.Boolean? = null, + var automated: kotlin.Boolean? = null, @Json(name = "name") var name: kotlin.String? = null,