forked from loafle/openapi-generator-original
Added default headers to ServerError<T> for Kotlin OkHTTP generator (#20161)
This commit is contained in:
parent
2b891f6da9
commit
23aa2e2cb2
@ -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)
|
||||||
|
@ -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)
|
||||||
|
@ -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)
|
||||||
|
@ -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)
|
||||||
|
@ -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)
|
||||||
|
@ -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)
|
||||||
|
@ -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)
|
||||||
|
@ -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)
|
||||||
|
@ -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)
|
||||||
|
@ -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)
|
||||||
|
@ -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)
|
||||||
|
@ -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)
|
||||||
|
@ -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)
|
||||||
|
@ -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)
|
||||||
|
@ -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)
|
||||||
|
@ -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)
|
||||||
|
@ -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)
|
||||||
|
@ -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)
|
||||||
|
@ -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)
|
||||||
|
@ -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)
|
||||||
|
@ -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)
|
||||||
|
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user