mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-19 21:17:12 +00:00
[kotlin] Make API classes open (non-final) unless nonPublicApi is used (#22461)
* [kotlin] Make API classes open (non-final) unless nonPublicApi is used By making those classes open, AspectJ can be used to enhance their behavior. I'm not changing kotlin-multiplatform templates, where 'open' was already present before my changes. Closes #22271 * Fail Kotlin sample compilation if API classes stop to be public Serves as a 'regression test'.
This commit is contained in:
@@ -28,7 +28,7 @@ import org.springframework.util.LinkedMultiValueMap
|
||||
|
||||
import org.openapitools.client.infrastructure.*
|
||||
|
||||
class AuthApi(client: WebClient) : ApiClient(client) {
|
||||
open class AuthApi(client: WebClient) : ApiClient(client) {
|
||||
|
||||
constructor(baseUrl: String) : this(WebClient.builder()
|
||||
.baseUrl(baseUrl)
|
||||
|
||||
@@ -30,7 +30,7 @@ import org.openapitools.client.models.Pet
|
||||
import org.openapitools.client.models.Tag
|
||||
import org.openapitools.client.infrastructure.*
|
||||
|
||||
class BodyApi(client: WebClient) : ApiClient(client) {
|
||||
open class BodyApi(client: WebClient) : ApiClient(client) {
|
||||
|
||||
constructor(baseUrl: String) : this(WebClient.builder()
|
||||
.baseUrl(baseUrl)
|
||||
|
||||
@@ -28,7 +28,7 @@ import org.springframework.util.LinkedMultiValueMap
|
||||
|
||||
import org.openapitools.client.infrastructure.*
|
||||
|
||||
class FormApi(client: WebClient) : ApiClient(client) {
|
||||
open class FormApi(client: WebClient) : ApiClient(client) {
|
||||
|
||||
constructor(baseUrl: String) : this(WebClient.builder()
|
||||
.baseUrl(baseUrl)
|
||||
|
||||
@@ -29,7 +29,7 @@ import org.springframework.util.LinkedMultiValueMap
|
||||
import org.openapitools.client.models.StringEnumRef
|
||||
import org.openapitools.client.infrastructure.*
|
||||
|
||||
class HeaderApi(client: WebClient) : ApiClient(client) {
|
||||
open class HeaderApi(client: WebClient) : ApiClient(client) {
|
||||
|
||||
constructor(baseUrl: String) : this(WebClient.builder()
|
||||
.baseUrl(baseUrl)
|
||||
|
||||
@@ -29,7 +29,7 @@ import org.springframework.util.LinkedMultiValueMap
|
||||
import org.openapitools.client.models.StringEnumRef
|
||||
import org.openapitools.client.infrastructure.*
|
||||
|
||||
class PathApi(client: WebClient) : ApiClient(client) {
|
||||
open class PathApi(client: WebClient) : ApiClient(client) {
|
||||
|
||||
constructor(baseUrl: String) : this(WebClient.builder()
|
||||
.baseUrl(baseUrl)
|
||||
|
||||
@@ -31,7 +31,7 @@ import org.openapitools.client.models.StringEnumRef
|
||||
import org.openapitools.client.models.TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter
|
||||
import org.openapitools.client.infrastructure.*
|
||||
|
||||
class QueryApi(client: WebClient) : ApiClient(client) {
|
||||
open class QueryApi(client: WebClient) : ApiClient(client) {
|
||||
|
||||
constructor(baseUrl: String) : this(WebClient.builder()
|
||||
.baseUrl(baseUrl)
|
||||
|
||||
Reference in New Issue
Block a user