File tree Expand file tree Collapse file tree 1 file changed +8
-18
lines changed
customizations/generator/openapi/src/main/resources/templates/expediagroup-sdk Expand file tree Collapse file tree 1 file changed +8
-18
lines changed Original file line number Diff line number Diff line change 33 { {#hasNonBodyParams} }
44 package com.expediagroup.sdk.{ {namespace} }.operations
55
6- import com.expediagroup.sdk.core.model.exception.client.PropertyConstraintViolationException
7- import com.expediagroup.sdk.core.model.OperationParams
8-
9- import com.fasterxml.jackson.annotation.JsonProperty
10- import com.fasterxml.jackson.databind.annotation.JsonDeserialize
11- import io.ktor.http.Headers
12- import io.ktor.http.Parameters
13-
14- import javax.validation.constraints.Max
15- import javax.validation.constraints.Min
16- import javax.validation.constraints.NotNull
17- import javax.validation.constraints.Pattern
18- import javax.validation.constraints.Size
19- import javax.validation.Valid
20- import javax.validation.Validation
21-
22- import org.hibernate.validator.messageinterpolation.ParameterMessageInterpolator
6+ { {> imports/operation_params} }
237
248 /**
259 { {#nonBodyParams} }
167151 return Headers.build {
168152 {{#headerParams} }
169153 { {paramName} }?.let {
170- append(" {{baseName}}" , it{{#isEnum} }.value{ {/isEnum} })
154+ append(
155+ " {{baseName}}" ,
156+ it
157+ {{#isEnum} }.value{ {/isEnum} }
158+ { {^isEnum} }{ {#isEnumRef} }.value{ {/isEnumRef} }{ {/isEnum} }
159+ { {#isUuid} }.toString(){ {/isUuid} }
160+ )
171161 }
172162 { {/headerParams} }
173163 { {#responses} }
You can’t perform that action at this time.
0 commit comments