Added default headers to ServerError<T> for Kotlin OkHTTP generator (#20161)

This commit is contained in:
Ross 2024-11-22 22:10:22 +09:00 committed by GitHub
parent 2b891f6da9
commit 23aa2e2cb2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
22 changed files with 22 additions and 22 deletions

View File

@ -39,5 +39,5 @@ package {{packageName}}.infrastructure
{{^nonPublicApi}}{{#explicitApi}}public {{/explicitApi}}{{/nonPublicApi}}val message: String? = null, {{^nonPublicApi}}{{#explicitApi}}public {{/explicitApi}}{{/nonPublicApi}}val message: String? = null,
{{^nonPublicApi}}{{#explicitApi}}public {{/explicitApi}}{{/nonPublicApi}}val body: Any? = null, {{^nonPublicApi}}{{#explicitApi}}public {{/explicitApi}}{{/nonPublicApi}}val body: Any? = null,
override val statusCode: Int = -1, override val statusCode: Int = -1,
override val headers: Map<String, List<String>> override val headers: Map<String, List<String>> = mapOf()
): ApiResponse<T>(ResponseType.ServerError) ): ApiResponse<T>(ResponseType.ServerError)

View File

@ -39,5 +39,5 @@ class ServerError<T>(
val message: String? = null, val message: String? = null,
val body: Any? = null, val body: Any? = null,
override val statusCode: Int = -1, override val statusCode: Int = -1,
override val headers: Map<String, List<String>> override val headers: Map<String, List<String>> = mapOf()
): ApiResponse<T>(ResponseType.ServerError) ): ApiResponse<T>(ResponseType.ServerError)

View File

@ -39,5 +39,5 @@ class ServerError<T>(
val message: String? = null, val message: String? = null,
val body: Any? = null, val body: Any? = null,
override val statusCode: Int = -1, override val statusCode: Int = -1,
override val headers: Map<String, List<String>> override val headers: Map<String, List<String>> = mapOf()
): ApiResponse<T>(ResponseType.ServerError) ): ApiResponse<T>(ResponseType.ServerError)

View File

@ -39,5 +39,5 @@ class ServerError<T>(
val message: String? = null, val message: String? = null,
val body: Any? = null, val body: Any? = null,
override val statusCode: Int = -1, override val statusCode: Int = -1,
override val headers: Map<String, List<String>> override val headers: Map<String, List<String>> = mapOf()
): ApiResponse<T>(ResponseType.ServerError) ): ApiResponse<T>(ResponseType.ServerError)

View File

@ -39,5 +39,5 @@ class ServerError<T>(
val message: String? = null, val message: String? = null,
val body: Any? = null, val body: Any? = null,
override val statusCode: Int = -1, override val statusCode: Int = -1,
override val headers: Map<String, List<String>> override val headers: Map<String, List<String>> = mapOf()
): ApiResponse<T>(ResponseType.ServerError) ): ApiResponse<T>(ResponseType.ServerError)

View File

@ -39,5 +39,5 @@ class ServerError<T>(
val message: String? = null, val message: String? = null,
val body: Any? = null, val body: Any? = null,
override val statusCode: Int = -1, override val statusCode: Int = -1,
override val headers: Map<String, List<String>> override val headers: Map<String, List<String>> = mapOf()
): ApiResponse<T>(ResponseType.ServerError) ): ApiResponse<T>(ResponseType.ServerError)

View File

@ -39,5 +39,5 @@ class ServerError<T>(
val message: String? = null, val message: String? = null,
val body: Any? = null, val body: Any? = null,
override val statusCode: Int = -1, override val statusCode: Int = -1,
override val headers: Map<String, List<String>> override val headers: Map<String, List<String>> = mapOf()
): ApiResponse<T>(ResponseType.ServerError) ): ApiResponse<T>(ResponseType.ServerError)

View File

@ -39,5 +39,5 @@ public class ServerError<T>(
public val message: String? = null, public val message: String? = null,
public val body: Any? = null, public val body: Any? = null,
override val statusCode: Int = -1, override val statusCode: Int = -1,
override val headers: Map<String, List<String>> override val headers: Map<String, List<String>> = mapOf()
): ApiResponse<T>(ResponseType.ServerError) ): ApiResponse<T>(ResponseType.ServerError)

View File

@ -39,5 +39,5 @@ class ServerError<T>(
val message: String? = null, val message: String? = null,
val body: Any? = null, val body: Any? = null,
override val statusCode: Int = -1, override val statusCode: Int = -1,
override val headers: Map<String, List<String>> override val headers: Map<String, List<String>> = mapOf()
): ApiResponse<T>(ResponseType.ServerError) ): ApiResponse<T>(ResponseType.ServerError)

View File

@ -39,5 +39,5 @@ class ServerError<T>(
val message: String? = null, val message: String? = null,
val body: Any? = null, val body: Any? = null,
override val statusCode: Int = -1, override val statusCode: Int = -1,
override val headers: Map<String, List<String>> override val headers: Map<String, List<String>> = mapOf()
): ApiResponse<T>(ResponseType.ServerError) ): ApiResponse<T>(ResponseType.ServerError)

View File

@ -39,5 +39,5 @@ class ServerError<T>(
val message: String? = null, val message: String? = null,
val body: Any? = null, val body: Any? = null,
override val statusCode: Int = -1, override val statusCode: Int = -1,
override val headers: Map<String, List<String>> override val headers: Map<String, List<String>> = mapOf()
): ApiResponse<T>(ResponseType.ServerError) ): ApiResponse<T>(ResponseType.ServerError)

View File

@ -39,5 +39,5 @@ class ServerError<T>(
val message: String? = null, val message: String? = null,
val body: Any? = null, val body: Any? = null,
override val statusCode: Int = -1, override val statusCode: Int = -1,
override val headers: Map<String, List<String>> override val headers: Map<String, List<String>> = mapOf()
): ApiResponse<T>(ResponseType.ServerError) ): ApiResponse<T>(ResponseType.ServerError)

View File

@ -39,5 +39,5 @@ class ServerError<T>(
val message: String? = null, val message: String? = null,
val body: Any? = null, val body: Any? = null,
override val statusCode: Int = -1, override val statusCode: Int = -1,
override val headers: Map<String, List<String>> override val headers: Map<String, List<String>> = mapOf()
): ApiResponse<T>(ResponseType.ServerError) ): ApiResponse<T>(ResponseType.ServerError)

View File

@ -39,5 +39,5 @@ class ServerError<T>(
val message: String? = null, val message: String? = null,
val body: Any? = null, val body: Any? = null,
override val statusCode: Int = -1, override val statusCode: Int = -1,
override val headers: Map<String, List<String>> override val headers: Map<String, List<String>> = mapOf()
): ApiResponse<T>(ResponseType.ServerError) ): ApiResponse<T>(ResponseType.ServerError)

View File

@ -39,5 +39,5 @@ class ServerError<T>(
val message: String? = null, val message: String? = null,
val body: Any? = null, val body: Any? = null,
override val statusCode: Int = -1, override val statusCode: Int = -1,
override val headers: Map<String, List<String>> override val headers: Map<String, List<String>> = mapOf()
): ApiResponse<T>(ResponseType.ServerError) ): ApiResponse<T>(ResponseType.ServerError)

View File

@ -39,5 +39,5 @@ class ServerError<T>(
val message: String? = null, val message: String? = null,
val body: Any? = null, val body: Any? = null,
override val statusCode: Int = -1, override val statusCode: Int = -1,
override val headers: Map<String, List<String>> override val headers: Map<String, List<String>> = mapOf()
): ApiResponse<T>(ResponseType.ServerError) ): ApiResponse<T>(ResponseType.ServerError)

View File

@ -39,5 +39,5 @@ internal class ServerError<T>(
val message: String? = null, val message: String? = null,
val body: Any? = null, val body: Any? = null,
override val statusCode: Int = -1, override val statusCode: Int = -1,
override val headers: Map<String, List<String>> override val headers: Map<String, List<String>> = mapOf()
): ApiResponse<T>(ResponseType.ServerError) ): ApiResponse<T>(ResponseType.ServerError)

View File

@ -39,5 +39,5 @@ class ServerError<T>(
val message: String? = null, val message: String? = null,
val body: Any? = null, val body: Any? = null,
override val statusCode: Int = -1, override val statusCode: Int = -1,
override val headers: Map<String, List<String>> override val headers: Map<String, List<String>> = mapOf()
): ApiResponse<T>(ResponseType.ServerError) ): ApiResponse<T>(ResponseType.ServerError)

View File

@ -39,5 +39,5 @@ class ServerError<T>(
val message: String? = null, val message: String? = null,
val body: Any? = null, val body: Any? = null,
override val statusCode: Int = -1, override val statusCode: Int = -1,
override val headers: Map<String, List<String>> override val headers: Map<String, List<String>> = mapOf()
): ApiResponse<T>(ResponseType.ServerError) ): ApiResponse<T>(ResponseType.ServerError)

View File

@ -39,5 +39,5 @@ class ServerError<T>(
val message: String? = null, val message: String? = null,
val body: Any? = null, val body: Any? = null,
override val statusCode: Int = -1, override val statusCode: Int = -1,
override val headers: Map<String, List<String>> override val headers: Map<String, List<String>> = mapOf()
): ApiResponse<T>(ResponseType.ServerError) ): ApiResponse<T>(ResponseType.ServerError)

View File

@ -39,5 +39,5 @@ class ServerError<T>(
val message: String? = null, val message: String? = null,
val body: Any? = null, val body: Any? = null,
override val statusCode: Int = -1, override val statusCode: Int = -1,
override val headers: Map<String, List<String>> override val headers: Map<String, List<String>> = mapOf()
): ApiResponse<T>(ResponseType.ServerError) ): ApiResponse<T>(ResponseType.ServerError)

View File

@ -39,5 +39,5 @@ class ServerError<T>(
val message: String? = null, val message: String? = null,
val body: Any? = null, val body: Any? = null,
override val statusCode: Int = -1, override val statusCode: Int = -1,
override val headers: Map<String, List<String>> override val headers: Map<String, List<String>> = mapOf()
): ApiResponse<T>(ResponseType.ServerError) ): ApiResponse<T>(ResponseType.ServerError)