diff --git a/bin/configs/kotlin-misk-config.yaml b/bin/configs/kotlin-misk-config.yaml
index 70ecde187aa4..6c9442faf960 100644
--- a/bin/configs/kotlin-misk-config.yaml
+++ b/bin/configs/kotlin-misk-config.yaml
@@ -1,6 +1,6 @@
generatorName: kotlin-misk
outputDir: samples/server/petstore/kotlin-misk-config
-inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
+inputSpec: modules/openapi-generator/src/test/resources/3_0/kotlin/petstore-kotlin-misk.yaml
templateDir: modules/openapi-generator/src/main/resources/kotlin-misk
validateSpec: false
useBeanValidation: true
diff --git a/bin/configs/kotlin-misk.yaml b/bin/configs/kotlin-misk.yaml
index 5593aad0b7a7..684448fae443 100644
--- a/bin/configs/kotlin-misk.yaml
+++ b/bin/configs/kotlin-misk.yaml
@@ -1,6 +1,6 @@
generatorName: kotlin-misk
outputDir: samples/server/petstore/kotlin-misk
-inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
+inputSpec: modules/openapi-generator/src/test/resources/3_0/kotlin/petstore-kotlin-misk.yaml
templateDir: modules/openapi-generator/src/main/resources/kotlin-misk
additionalProperties:
hideGenerationTimestamp: "true"
diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/CodegenOperation.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/CodegenOperation.java
index 47e09ea292d4..e8c89ac9b6fa 100644
--- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/CodegenOperation.java
+++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/CodegenOperation.java
@@ -33,7 +33,7 @@ public class CodegenOperation {
hasErrorResponseObject; // if 4xx, 5xx responses have at least one error object defined
public CodegenProperty returnProperty;
public String path, operationId, returnType, returnFormat, httpMethod, returnBaseType,
- returnContainer, summary, unescapedNotes, notes, baseName, defaultResponse;
+ returnContainer, summary, unescapedSummary, unescapedNotes, notes, baseName, defaultResponse;
public CodegenDiscriminator discriminator;
public List
*
*
- * Response headers: [CodegenProperty{openApiType='string', baseName='Set-Cookie', complexType='null', getter='getSetCookie', setter='setSetCookie', description='Cookie authentication key for use with the `api_key` apiKey authentication.', dataType='String', datatypeWithEnum='String', dataFormat='null', name='setCookie', min='null', max='null', defaultValue='null', defaultValueWithParam=' = data.Set-Cookie;', baseType='String', containerType='null', containerTypeMapped='null', title='null', unescapedDescription='Cookie authentication key for use with the `api_key` apiKey authentication.', maxLength=null, minLength=null, pattern='null', example='AUTH_KEY=abcde12345; Path=/; HttpOnly', jsonSchema='{
+ *
Response headers: [CodegenProperty{openApiType='string', baseName='Set-Cookie', complexType='null', getter='getSetCookie', setter='setSetCookie', description='Cookie authentication key for use with the `api_key` apiKey authentication.', dataType='String', datatypeWithEnum='String', dataFormat='null', name='setCookie', min='null', max='null', defaultValue='null', defaultValueWithParam=' = data.Set-Cookie;', baseType='String', containerType='null', containerTypeMapped='null', title='null', unescapedDescription='Cookie authentication key for use with the `api_key` apiKey authentication.', unescapedDefaultValue='null', maxLength=null, minLength=null, pattern='null', example='AUTH_KEY=abcde12345; Path=/; HttpOnly', jsonSchema='{
"example" : "AUTH_KEY=abcde12345; Path=/; HttpOnly",
"type" : "string"
-}', minimum='null', maximum='null', exclusiveMinimum=false, exclusiveMaximum=false, required=false, deprecated=false, isPrimitiveType=true, isModel=false, isContainer=false, isString=true, isNumeric=false, isInteger=false, isShort=false, isLong=false, isUnboundedInteger=false, isNumber=false, isFloat=false, isDouble=false, isDecimal=false, isByteArray=false, isBinary=false, isFile=false, isBoolean=false, isDate=false, isDateTime=false, isUuid=false, isUri=false, isEmail=false, isPassword=false, isFreeFormObject=false, isArray=false, isMap=false, isOptional=false, isEnum=false, isInnerEnum=false, isEnumRef=false, isAnyType=false, isReadOnly=false, isWriteOnly=false, isNullable=false, isSelfReference=false, isCircularReference=false, isDiscriminator=false, isNew=false, isOverridden=null, _enum=null, allowableValues=null, items=null, additionalProperties=null, vars=[], requiredVars=[], mostInnerItems=null, vendorExtensions={}, hasValidation=false, isInherited=false, discriminatorValue='null', nameInCamelCase='setCookie', nameInPascalCase='SetCookie', nameInSnakeCase='SET_COOKIE', enumName='null', maxItems=null, minItems=null, maxProperties=null, minProperties=null, uniqueItems=false, uniqueItemsBoolean=null, multipleOf=null, isXmlAttribute=false, xmlPrefix='null', xmlName='null', xmlNamespace='null', isXmlWrapped=false, isNull=false, isVoid=false, getAdditionalPropertiesIsAnyType=false, getHasVars=false, getHasRequired=false, getHasDiscriminatorWithNonEmptyMapping=false, composedSchemas=null, hasMultipleTypes=false, hasSanitizedName=true, requiredVarsMap=null, ref=null, schemaIsFromAdditionalProperties=false, isBooleanSchemaTrue=false, isBooleanSchemaFalse=false, format=null, dependentRequired=null, contains=null}, CodegenProperty{openApiType='integer', baseName='X-Rate-Limit', complexType='null', getter='getxRateLimit', setter='setxRateLimit', description='calls per hour allowed by the user', dataType='Integer', datatypeWithEnum='Integer', dataFormat='int32', name='xRateLimit', min='null', max='null', defaultValue='null', defaultValueWithParam=' = data.X-Rate-Limit;', baseType='Integer', containerType='null', containerTypeMapped='null', title='null', unescapedDescription='calls per hour allowed by the user', maxLength=null, minLength=null, pattern='null', example='null', jsonSchema='{
+}', minimum='null', maximum='null', exclusiveMinimum=false, exclusiveMaximum=false, required=false, deprecated=false, isPrimitiveType=true, isModel=false, isContainer=false, isString=true, isNumeric=false, isInteger=false, isShort=false, isLong=false, isUnboundedInteger=false, isNumber=false, isFloat=false, isDouble=false, isDecimal=false, isByteArray=false, isBinary=false, isFile=false, isBoolean=false, isDate=false, isDateTime=false, isUuid=false, isUri=false, isEmail=false, isPassword=false, isFreeFormObject=false, isArray=false, isMap=false, isOptional=false, isEnum=false, isInnerEnum=false, isEnumRef=false, isAnyType=false, isReadOnly=false, isWriteOnly=false, isNullable=false, isSelfReference=false, isCircularReference=false, isDiscriminator=false, isNew=false, isOverridden=null, _enum=null, allowableValues=null, items=null, additionalProperties=null, vars=[], requiredVars=[], mostInnerItems=null, vendorExtensions={}, hasValidation=false, isInherited=false, discriminatorValue='null', nameInCamelCase='setCookie', nameInPascalCase='SetCookie', nameInSnakeCase='SET_COOKIE', enumName='null', maxItems=null, minItems=null, maxProperties=null, minProperties=null, uniqueItems=false, uniqueItemsBoolean=null, multipleOf=null, isXmlAttribute=false, xmlPrefix='null', xmlName='null', xmlNamespace='null', isXmlWrapped=false, isNull=false, isVoid=false, getAdditionalPropertiesIsAnyType=false, getHasVars=false, getHasRequired=false, getHasDiscriminatorWithNonEmptyMapping=false, composedSchemas=null, hasMultipleTypes=false, hasSanitizedName=true, requiredVarsMap=null, ref=null, schemaIsFromAdditionalProperties=false, isBooleanSchemaTrue=false, isBooleanSchemaFalse=false, format=null, dependentRequired=null, contains=null}, CodegenProperty{openApiType='integer', baseName='X-Rate-Limit', complexType='null', getter='getxRateLimit', setter='setxRateLimit', description='calls per hour allowed by the user', dataType='Integer', datatypeWithEnum='Integer', dataFormat='int32', name='xRateLimit', min='null', max='null', defaultValue='null', defaultValueWithParam=' = data.X-Rate-Limit;', baseType='Integer', containerType='null', containerTypeMapped='null', title='null', unescapedDescription='calls per hour allowed by the user', unescapedDefaultValue='null', maxLength=null, minLength=null, pattern='null', example='null', jsonSchema='{
"format" : "int32",
"type" : "integer"
-}', minimum='null', maximum='null', exclusiveMinimum=false, exclusiveMaximum=false, required=false, deprecated=false, isPrimitiveType=true, isModel=false, isContainer=false, isString=false, isNumeric=true, isInteger=true, isShort=true, isLong=false, isUnboundedInteger=false, isNumber=false, isFloat=false, isDouble=false, isDecimal=false, isByteArray=false, isBinary=false, isFile=false, isBoolean=false, isDate=false, isDateTime=false, isUuid=false, isUri=false, isEmail=false, isPassword=false, isFreeFormObject=false, isArray=false, isMap=false, isOptional=false, isEnum=false, isInnerEnum=false, isEnumRef=false, isAnyType=false, isReadOnly=false, isWriteOnly=false, isNullable=false, isSelfReference=false, isCircularReference=false, isDiscriminator=false, isNew=false, isOverridden=null, _enum=null, allowableValues=null, items=null, additionalProperties=null, vars=[], requiredVars=[], mostInnerItems=null, vendorExtensions={}, hasValidation=false, isInherited=false, discriminatorValue='null', nameInCamelCase='xRateLimit', nameInPascalCase='XRateLimit', nameInSnakeCase='X_RATE_LIMIT', enumName='null', maxItems=null, minItems=null, maxProperties=null, minProperties=null, uniqueItems=false, uniqueItemsBoolean=null, multipleOf=null, isXmlAttribute=false, xmlPrefix='null', xmlName='null', xmlNamespace='null', isXmlWrapped=false, isNull=false, isVoid=false, getAdditionalPropertiesIsAnyType=false, getHasVars=false, getHasRequired=false, getHasDiscriminatorWithNonEmptyMapping=false, composedSchemas=null, hasMultipleTypes=false, hasSanitizedName=true, requiredVarsMap=null, ref=null, schemaIsFromAdditionalProperties=false, isBooleanSchemaTrue=false, isBooleanSchemaFalse=false, format=int32, dependentRequired=null, contains=null}, CodegenProperty{openApiType='string', baseName='X-Expires-After', complexType='Date', getter='getxExpiresAfter', setter='setxExpiresAfter', description='date in UTC when token expires', dataType='Date', datatypeWithEnum='Date', dataFormat='date-time', name='xExpiresAfter', min='null', max='null', defaultValue='null', defaultValueWithParam=' = data.X-Expires-After;', baseType='Date', containerType='null', containerTypeMapped='null', title='null', unescapedDescription='date in UTC when token expires', maxLength=null, minLength=null, pattern='null', example='null', jsonSchema='{
+}', minimum='null', maximum='null', exclusiveMinimum=false, exclusiveMaximum=false, required=false, deprecated=false, isPrimitiveType=true, isModel=false, isContainer=false, isString=false, isNumeric=true, isInteger=true, isShort=true, isLong=false, isUnboundedInteger=false, isNumber=false, isFloat=false, isDouble=false, isDecimal=false, isByteArray=false, isBinary=false, isFile=false, isBoolean=false, isDate=false, isDateTime=false, isUuid=false, isUri=false, isEmail=false, isPassword=false, isFreeFormObject=false, isArray=false, isMap=false, isOptional=false, isEnum=false, isInnerEnum=false, isEnumRef=false, isAnyType=false, isReadOnly=false, isWriteOnly=false, isNullable=false, isSelfReference=false, isCircularReference=false, isDiscriminator=false, isNew=false, isOverridden=null, _enum=null, allowableValues=null, items=null, additionalProperties=null, vars=[], requiredVars=[], mostInnerItems=null, vendorExtensions={}, hasValidation=false, isInherited=false, discriminatorValue='null', nameInCamelCase='xRateLimit', nameInPascalCase='XRateLimit', nameInSnakeCase='X_RATE_LIMIT', enumName='null', maxItems=null, minItems=null, maxProperties=null, minProperties=null, uniqueItems=false, uniqueItemsBoolean=null, multipleOf=null, isXmlAttribute=false, xmlPrefix='null', xmlName='null', xmlNamespace='null', isXmlWrapped=false, isNull=false, isVoid=false, getAdditionalPropertiesIsAnyType=false, getHasVars=false, getHasRequired=false, getHasDiscriminatorWithNonEmptyMapping=false, composedSchemas=null, hasMultipleTypes=false, hasSanitizedName=true, requiredVarsMap=null, ref=null, schemaIsFromAdditionalProperties=false, isBooleanSchemaTrue=false, isBooleanSchemaFalse=false, format=int32, dependentRequired=null, contains=null}, CodegenProperty{openApiType='string', baseName='X-Expires-After', complexType='Date', getter='getxExpiresAfter', setter='setxExpiresAfter', description='date in UTC when token expires', dataType='Date', datatypeWithEnum='Date', dataFormat='date-time', name='xExpiresAfter', min='null', max='null', defaultValue='null', defaultValueWithParam=' = data.X-Expires-After;', baseType='Date', containerType='null', containerTypeMapped='null', title='null', unescapedDescription='date in UTC when token expires', unescapedDefaultValue='null', maxLength=null, minLength=null, pattern='null', example='null', jsonSchema='{
"format" : "date-time",
"type" : "string"
}', minimum='null', maximum='null', exclusiveMinimum=false, exclusiveMaximum=false, required=false, deprecated=false, isPrimitiveType=false, isModel=false, isContainer=false, isString=false, isNumeric=false, isInteger=false, isShort=false, isLong=false, isUnboundedInteger=false, isNumber=false, isFloat=false, isDouble=false, isDecimal=false, isByteArray=false, isBinary=false, isFile=false, isBoolean=false, isDate=false, isDateTime=true, isUuid=false, isUri=false, isEmail=false, isPassword=false, isFreeFormObject=false, isArray=false, isMap=false, isOptional=false, isEnum=false, isInnerEnum=false, isEnumRef=false, isAnyType=false, isReadOnly=false, isWriteOnly=false, isNullable=false, isSelfReference=false, isCircularReference=false, isDiscriminator=false, isNew=false, isOverridden=null, _enum=null, allowableValues=null, items=null, additionalProperties=null, vars=[], requiredVars=[], mostInnerItems=null, vendorExtensions={}, hasValidation=false, isInherited=false, discriminatorValue='null', nameInCamelCase='xExpiresAfter', nameInPascalCase='XExpiresAfter', nameInSnakeCase='X_EXPIRES_AFTER', enumName='null', maxItems=null, minItems=null, maxProperties=null, minProperties=null, uniqueItems=false, uniqueItemsBoolean=null, multipleOf=null, isXmlAttribute=false, xmlPrefix='null', xmlName='null', xmlNamespace='null', isXmlWrapped=false, isNull=false, isVoid=false, getAdditionalPropertiesIsAnyType=false, getHasVars=false, getHasRequired=false, getHasDiscriminatorWithNonEmptyMapping=false, composedSchemas=null, hasMultipleTypes=false, hasSanitizedName=true, requiredVarsMap=null, ref=null, schemaIsFromAdditionalProperties=false, isBooleanSchemaTrue=false, isBooleanSchemaFalse=false, format=date-time, dependentRequired=null, contains=null}]
diff --git a/samples/server/petstore/kotlin-misk-config/.openapi-generator/FILES b/samples/server/petstore/kotlin-misk-config/.openapi-generator/FILES
index 594e5efd5ba2..9ef76d5d361c 100644
--- a/samples/server/petstore/kotlin-misk-config/.openapi-generator/FILES
+++ b/samples/server/petstore/kotlin-misk-config/.openapi-generator/FILES
@@ -2,6 +2,7 @@ README.md
build.gradle.kts
docs/ApiResponse.md
docs/Category.md
+docs/EscapingEdgeCases.md
docs/Order.md
docs/Pet.md
docs/PetApi.md
@@ -15,6 +16,7 @@ src/main/kotlin/org/openapitools/server/api/api/PetStoreModule.kt
src/main/kotlin/org/openapitools/server/api/api/StoreApiAction.kt
src/main/kotlin/org/openapitools/server/api/api/UserApiAction.kt
src/main/kotlin/org/openapitools/server/api/model/Category.kt
+src/main/kotlin/org/openapitools/server/api/model/EscapingEdgeCases.kt
src/main/kotlin/org/openapitools/server/api/model/ModelApiResponse.kt
src/main/kotlin/org/openapitools/server/api/model/Order.kt
src/main/kotlin/org/openapitools/server/api/model/Pet.kt
diff --git a/samples/server/petstore/kotlin-misk-config/README.md b/samples/server/petstore/kotlin-misk-config/README.md
index 8fc27a719a91..a681a02dae40 100644
--- a/samples/server/petstore/kotlin-misk-config/README.md
+++ b/samples/server/petstore/kotlin-misk-config/README.md
@@ -11,6 +11,7 @@
*PetApi* | [**deletePet**](Apis/docs/PetApi.md#deletepet) | **Delete** /pet/{petId} | Deletes a pet
*PetApi* | [**findPetsByStatus**](Apis/docs/PetApi.md#findpetsbystatus) | **Get** /pet/findByStatus | Finds Pets by status
*PetApi* | [**findPetsByTags**](Apis/docs/PetApi.md#findpetsbytags) | **Get** /pet/findByTags | Finds Pets by tags
+ *PetApi* | [**getEscapingEdgeCases**](Apis/docs/PetApi.md#getescapingedgecases) | **Get** /pet/escaping | Test escaping: $dollar, backslash \\ and quote \"
*PetApi* | [**getPetById**](Apis/docs/PetApi.md#getpetbyid) | **Get** /pet/{petId} | Find pet by ID
*PetApi* | [**updatePet**](Apis/docs/PetApi.md#updatepet) | **Put** /pet | Update an existing pet
*PetApi* | [**updatePetWithForm**](Apis/docs/PetApi.md#updatepetwithform) | **Post** /pet/{petId} | Updates a pet in the store with form data
@@ -33,6 +34,7 @@
## Documentation for Models
- [org.openapitools.server.api.model.Category](Models/docs/Category.md)
+ - [org.openapitools.server.api.model.EscapingEdgeCases](Models/docs/EscapingEdgeCases.md)
- [org.openapitools.server.api.model.ModelApiResponse](Models/docs/ModelApiResponse.md)
- [org.openapitools.server.api.model.Order](Models/docs/Order.md)
- [org.openapitools.server.api.model.Pet](Models/docs/Pet.md)
diff --git a/samples/server/petstore/kotlin-misk-config/docs/EscapingEdgeCases.md b/samples/server/petstore/kotlin-misk-config/docs/EscapingEdgeCases.md
new file mode 100644
index 000000000000..4ab2399cccc8
--- /dev/null
+++ b/samples/server/petstore/kotlin-misk-config/docs/EscapingEdgeCases.md
@@ -0,0 +1,11 @@
+
+# EscapingEdgeCases
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**dollarDefault** | **kotlin.String** | A string whose default has \$dollar, backslash \\, quote " and comment-close */ | [optional]
+**regularProp** | **kotlin.String** | Regular property for baseline comparison | [optional]
+
+
+
diff --git a/samples/server/petstore/kotlin-misk-config/docs/PetApi.md b/samples/server/petstore/kotlin-misk-config/docs/PetApi.md
index 99dbe788edb0..5e073104a909 100644
--- a/samples/server/petstore/kotlin-misk-config/docs/PetApi.md
+++ b/samples/server/petstore/kotlin-misk-config/docs/PetApi.md
@@ -8,6 +8,7 @@ Method | HTTP request | Description
[**deletePet**](PetApi.md#deletePet) | **Delete** /pet/{petId} | Deletes a pet
[**findPetsByStatus**](PetApi.md#findPetsByStatus) | **Get** /pet/findByStatus | Finds Pets by status
[**findPetsByTags**](PetApi.md#findPetsByTags) | **Get** /pet/findByTags | Finds Pets by tags
+[**getEscapingEdgeCases**](PetApi.md#getEscapingEdgeCases) | **Get** /pet/escaping | Test escaping: \$dollar, backslash \\ and quote "
[**getPetById**](PetApi.md#getPetById) | **Get** /pet/{petId} | Find pet by ID
[**updatePet**](PetApi.md#updatePet) | **Put** /pet | Update an existing pet
[**updatePetWithForm**](PetApi.md#updatePetWithForm) | **Post** /pet/{petId} | Updates a pet in the store with form data
@@ -203,6 +204,49 @@ Name | Type | Description | Notes
- **Content-Type**: Not defined
- **Accept**: APPLICATION_XML, APPLICATION_JSON
+
+# **getEscapingEdgeCases**
+> EscapingEdgeCases getEscapingEdgeCases()
+
+Test escaping: \$dollar, backslash \\ and quote "
+
+Retrieves edge-cases for escaping: \$var, \\, ", */
+
+### Example
+```kotlin
+// Import classes:
+//import org.openapitools.infrastructure.*
+//import org.openapitools.server.api.model.*
+
+val apiInstance = PetApi()
+try {
+ val result : EscapingEdgeCases = apiInstance.getEscapingEdgeCases()
+ println(result)
+} catch (e: ClientException) {
+ println("4xx response calling PetApi#getEscapingEdgeCases")
+ e.printStackTrace()
+} catch (e: ServerException) {
+ println("5xx response calling PetApi#getEscapingEdgeCases")
+ e.printStackTrace()
+}
+```
+
+### Parameters
+This endpoint does not need any parameter.
+
+### Return type
+
+[**EscapingEdgeCases**](EscapingEdgeCases.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: APPLICATION_JSON
+
# **getPetById**
> Pet getPetById(petId)
diff --git a/samples/server/petstore/kotlin-misk-config/docs/StoreApi.md b/samples/server/petstore/kotlin-misk-config/docs/StoreApi.md
index d3add9f5776a..8170140ea27d 100644
--- a/samples/server/petstore/kotlin-misk-config/docs/StoreApi.md
+++ b/samples/server/petstore/kotlin-misk-config/docs/StoreApi.md
@@ -105,7 +105,7 @@ This endpoint does not need any parameter.
Find purchase order by ID
-For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions
+For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions
### Example
```kotlin
diff --git a/samples/server/petstore/kotlin-misk-config/src/main/kotlin/org/openapitools/server/api/api/PetApiAction.kt b/samples/server/petstore/kotlin-misk-config/src/main/kotlin/org/openapitools/server/api/api/PetApiAction.kt
index f98d5a463e85..611c58b0c9e4 100644
--- a/samples/server/petstore/kotlin-misk-config/src/main/kotlin/org/openapitools/server/api/api/PetApiAction.kt
+++ b/samples/server/petstore/kotlin-misk-config/src/main/kotlin/org/openapitools/server/api/api/PetApiAction.kt
@@ -28,6 +28,7 @@ import misk.web.RequestHeader
import misk.web.Response
import misk.web.ResponseContentType
import misk.web.mediatype.MediaTypes
+import org.openapitools.server.api.model.EscapingEdgeCases
import org.openapitools.server.api.model.ModelApiResponse
import org.openapitools.server.api.model.Pet
@@ -83,6 +84,16 @@ class PetApiAction @Inject constructor(
TODO()
}
+ @Get("samplePrefix/pet/escaping")
+ @Description("Test escaping: \$dollar, backslash \\ and quote \"")
+ @ResponseContentType(MediaTypes.APPLICATION_JSON)
+ @LogRequestResponse(bodySampling = 1.0, errorBodySampling = 2.0)
+ @Suppress("unused")
+ fun getEscapingEdgeCases(
+ ): EscapingEdgeCases {
+ TODO()
+ }
+
@Get("samplePrefix/pet/{petId}")
@Description("Find pet by ID")
@ResponseContentType(MediaTypes.APPLICATION_XML, MediaTypes.APPLICATION_JSON)
diff --git a/samples/server/petstore/kotlin-misk-config/src/main/kotlin/org/openapitools/server/api/model/EscapingEdgeCases.kt b/samples/server/petstore/kotlin-misk-config/src/main/kotlin/org/openapitools/server/api/model/EscapingEdgeCases.kt
new file mode 100644
index 000000000000..bdc5d466d1e5
--- /dev/null
+++ b/samples/server/petstore/kotlin-misk-config/src/main/kotlin/org/openapitools/server/api/model/EscapingEdgeCases.kt
@@ -0,0 +1,11 @@
+package org.openapitools.server.api.model
+
+import com.squareup.moshi.JsonClass
+
+@JsonClass(generateAdapter = true)
+data class EscapingEdgeCases(
+ /** A string whose default has $dollar, backslash \\, quote \" and comment-close *_/ */
+ val dollarDefault: kotlin.String? = "hello \$world, backslash=\\, quote=\", end */",
+ /** Regular property for baseline comparison */
+ val regularProp: kotlin.String? = null
+)
diff --git a/samples/server/petstore/kotlin-misk/.openapi-generator/FILES b/samples/server/petstore/kotlin-misk/.openapi-generator/FILES
index 594e5efd5ba2..9ef76d5d361c 100644
--- a/samples/server/petstore/kotlin-misk/.openapi-generator/FILES
+++ b/samples/server/petstore/kotlin-misk/.openapi-generator/FILES
@@ -2,6 +2,7 @@ README.md
build.gradle.kts
docs/ApiResponse.md
docs/Category.md
+docs/EscapingEdgeCases.md
docs/Order.md
docs/Pet.md
docs/PetApi.md
@@ -15,6 +16,7 @@ src/main/kotlin/org/openapitools/server/api/api/PetStoreModule.kt
src/main/kotlin/org/openapitools/server/api/api/StoreApiAction.kt
src/main/kotlin/org/openapitools/server/api/api/UserApiAction.kt
src/main/kotlin/org/openapitools/server/api/model/Category.kt
+src/main/kotlin/org/openapitools/server/api/model/EscapingEdgeCases.kt
src/main/kotlin/org/openapitools/server/api/model/ModelApiResponse.kt
src/main/kotlin/org/openapitools/server/api/model/Order.kt
src/main/kotlin/org/openapitools/server/api/model/Pet.kt
diff --git a/samples/server/petstore/kotlin-misk/README.md b/samples/server/petstore/kotlin-misk/README.md
index 8fc27a719a91..a681a02dae40 100644
--- a/samples/server/petstore/kotlin-misk/README.md
+++ b/samples/server/petstore/kotlin-misk/README.md
@@ -11,6 +11,7 @@
*PetApi* | [**deletePet**](Apis/docs/PetApi.md#deletepet) | **Delete** /pet/{petId} | Deletes a pet
*PetApi* | [**findPetsByStatus**](Apis/docs/PetApi.md#findpetsbystatus) | **Get** /pet/findByStatus | Finds Pets by status
*PetApi* | [**findPetsByTags**](Apis/docs/PetApi.md#findpetsbytags) | **Get** /pet/findByTags | Finds Pets by tags
+ *PetApi* | [**getEscapingEdgeCases**](Apis/docs/PetApi.md#getescapingedgecases) | **Get** /pet/escaping | Test escaping: $dollar, backslash \\ and quote \"
*PetApi* | [**getPetById**](Apis/docs/PetApi.md#getpetbyid) | **Get** /pet/{petId} | Find pet by ID
*PetApi* | [**updatePet**](Apis/docs/PetApi.md#updatepet) | **Put** /pet | Update an existing pet
*PetApi* | [**updatePetWithForm**](Apis/docs/PetApi.md#updatepetwithform) | **Post** /pet/{petId} | Updates a pet in the store with form data
@@ -33,6 +34,7 @@
## Documentation for Models
- [org.openapitools.server.api.model.Category](Models/docs/Category.md)
+ - [org.openapitools.server.api.model.EscapingEdgeCases](Models/docs/EscapingEdgeCases.md)
- [org.openapitools.server.api.model.ModelApiResponse](Models/docs/ModelApiResponse.md)
- [org.openapitools.server.api.model.Order](Models/docs/Order.md)
- [org.openapitools.server.api.model.Pet](Models/docs/Pet.md)
diff --git a/samples/server/petstore/kotlin-misk/docs/EscapingEdgeCases.md b/samples/server/petstore/kotlin-misk/docs/EscapingEdgeCases.md
new file mode 100644
index 000000000000..4ab2399cccc8
--- /dev/null
+++ b/samples/server/petstore/kotlin-misk/docs/EscapingEdgeCases.md
@@ -0,0 +1,11 @@
+
+# EscapingEdgeCases
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**dollarDefault** | **kotlin.String** | A string whose default has \$dollar, backslash \\, quote " and comment-close */ | [optional]
+**regularProp** | **kotlin.String** | Regular property for baseline comparison | [optional]
+
+
+
diff --git a/samples/server/petstore/kotlin-misk/docs/PetApi.md b/samples/server/petstore/kotlin-misk/docs/PetApi.md
index 99dbe788edb0..5e073104a909 100644
--- a/samples/server/petstore/kotlin-misk/docs/PetApi.md
+++ b/samples/server/petstore/kotlin-misk/docs/PetApi.md
@@ -8,6 +8,7 @@ Method | HTTP request | Description
[**deletePet**](PetApi.md#deletePet) | **Delete** /pet/{petId} | Deletes a pet
[**findPetsByStatus**](PetApi.md#findPetsByStatus) | **Get** /pet/findByStatus | Finds Pets by status
[**findPetsByTags**](PetApi.md#findPetsByTags) | **Get** /pet/findByTags | Finds Pets by tags
+[**getEscapingEdgeCases**](PetApi.md#getEscapingEdgeCases) | **Get** /pet/escaping | Test escaping: \$dollar, backslash \\ and quote "
[**getPetById**](PetApi.md#getPetById) | **Get** /pet/{petId} | Find pet by ID
[**updatePet**](PetApi.md#updatePet) | **Put** /pet | Update an existing pet
[**updatePetWithForm**](PetApi.md#updatePetWithForm) | **Post** /pet/{petId} | Updates a pet in the store with form data
@@ -203,6 +204,49 @@ Name | Type | Description | Notes
- **Content-Type**: Not defined
- **Accept**: APPLICATION_XML, APPLICATION_JSON
+
+# **getEscapingEdgeCases**
+> EscapingEdgeCases getEscapingEdgeCases()
+
+Test escaping: \$dollar, backslash \\ and quote "
+
+Retrieves edge-cases for escaping: \$var, \\, ", */
+
+### Example
+```kotlin
+// Import classes:
+//import org.openapitools.infrastructure.*
+//import org.openapitools.server.api.model.*
+
+val apiInstance = PetApi()
+try {
+ val result : EscapingEdgeCases = apiInstance.getEscapingEdgeCases()
+ println(result)
+} catch (e: ClientException) {
+ println("4xx response calling PetApi#getEscapingEdgeCases")
+ e.printStackTrace()
+} catch (e: ServerException) {
+ println("5xx response calling PetApi#getEscapingEdgeCases")
+ e.printStackTrace()
+}
+```
+
+### Parameters
+This endpoint does not need any parameter.
+
+### Return type
+
+[**EscapingEdgeCases**](EscapingEdgeCases.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: APPLICATION_JSON
+
# **getPetById**
> Pet getPetById(petId)
diff --git a/samples/server/petstore/kotlin-misk/docs/StoreApi.md b/samples/server/petstore/kotlin-misk/docs/StoreApi.md
index d3add9f5776a..8170140ea27d 100644
--- a/samples/server/petstore/kotlin-misk/docs/StoreApi.md
+++ b/samples/server/petstore/kotlin-misk/docs/StoreApi.md
@@ -105,7 +105,7 @@ This endpoint does not need any parameter.
Find purchase order by ID
-For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions
+For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions
### Example
```kotlin
diff --git a/samples/server/petstore/kotlin-misk/src/main/kotlin/org/openapitools/server/api/api/PetApiAction.kt b/samples/server/petstore/kotlin-misk/src/main/kotlin/org/openapitools/server/api/api/PetApiAction.kt
index 1a8c806566d5..5c9e639ac479 100644
--- a/samples/server/petstore/kotlin-misk/src/main/kotlin/org/openapitools/server/api/api/PetApiAction.kt
+++ b/samples/server/petstore/kotlin-misk/src/main/kotlin/org/openapitools/server/api/api/PetApiAction.kt
@@ -28,6 +28,7 @@ import misk.web.RequestHeader
import misk.web.Response
import misk.web.ResponseContentType
import misk.web.mediatype.MediaTypes
+import org.openapitools.server.api.model.EscapingEdgeCases
import org.openapitools.server.api.model.ModelApiResponse
import org.openapitools.server.api.model.Pet
@@ -79,6 +80,15 @@ class PetApiAction @Inject constructor(
TODO()
}
+ @Get("/pet/escaping")
+ @Description("Test escaping: \$dollar, backslash \\ and quote \"")
+ @ResponseContentType(MediaTypes.APPLICATION_JSON)
+ @LogRequestResponse(bodySampling = 1.0, errorBodySampling = 1.0)
+ fun getEscapingEdgeCases(
+ ): EscapingEdgeCases {
+ TODO()
+ }
+
@Get("/pet/{petId}")
@Description("Find pet by ID")
@ResponseContentType(MediaTypes.APPLICATION_XML, MediaTypes.APPLICATION_JSON)
diff --git a/samples/server/petstore/kotlin-misk/src/main/kotlin/org/openapitools/server/api/model/EscapingEdgeCases.kt b/samples/server/petstore/kotlin-misk/src/main/kotlin/org/openapitools/server/api/model/EscapingEdgeCases.kt
new file mode 100644
index 000000000000..bdc5d466d1e5
--- /dev/null
+++ b/samples/server/petstore/kotlin-misk/src/main/kotlin/org/openapitools/server/api/model/EscapingEdgeCases.kt
@@ -0,0 +1,11 @@
+package org.openapitools.server.api.model
+
+import com.squareup.moshi.JsonClass
+
+@JsonClass(generateAdapter = true)
+data class EscapingEdgeCases(
+ /** A string whose default has $dollar, backslash \\, quote \" and comment-close *_/ */
+ val dollarDefault: kotlin.String? = "hello \$world, backslash=\\, quote=\", end */",
+ /** Regular property for baseline comparison */
+ val regularProp: kotlin.String? = null
+)
diff --git a/samples/server/petstore/kotlin-spring-default/.openapi-generator/FILES b/samples/server/petstore/kotlin-spring-default/.openapi-generator/FILES
index 98932e549209..6000fcacc452 100644
--- a/samples/server/petstore/kotlin-spring-default/.openapi-generator/FILES
+++ b/samples/server/petstore/kotlin-spring-default/.openapi-generator/FILES
@@ -22,6 +22,7 @@ src/main/kotlin/org/openapitools/model/Category.kt
src/main/kotlin/org/openapitools/model/ModelApiResponse.kt
src/main/kotlin/org/openapitools/model/Order.kt
src/main/kotlin/org/openapitools/model/Pet.kt
+src/main/kotlin/org/openapitools/model/PetWithSpecialProps.kt
src/main/kotlin/org/openapitools/model/Tag.kt
src/main/kotlin/org/openapitools/model/User.kt
src/main/kotlin/org/openapitools/model/UserOrPet.kt
diff --git a/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/api/FakeApiController.kt b/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/api/FakeApiController.kt
index b1d3383a2feb..09b69a1f46c5 100644
--- a/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/api/FakeApiController.kt
+++ b/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/api/FakeApiController.kt
@@ -36,7 +36,7 @@ class FakeApiController() {
@Operation(
summary = "annotate",
operationId = "annotations",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "OK") ]
)
@@ -55,7 +55,7 @@ class FakeApiController() {
@Operation(
summary = "Updates a pet in the store with form data (number)",
operationId = "updatePetWithFormNumber",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "405", description = "Invalid input") ],
security = [ SecurityRequirement(name = "petstore_auth", scopes = [ "write:pets", "read:pets" ]) ]
diff --git a/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/api/PetApiController.kt b/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/api/PetApiController.kt
index add6ff045ac4..da6a77c9b5d8 100644
--- a/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/api/PetApiController.kt
+++ b/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/api/PetApiController.kt
@@ -37,7 +37,7 @@ class PetApiController() {
@Operation(
summary = "Add a new pet to the store",
operationId = "addPet",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = Pet::class))]),
ApiResponse(responseCode = "405", description = "Invalid input") ],
@@ -59,7 +59,7 @@ class PetApiController() {
@Operation(
summary = "Deletes a pet",
operationId = "deletePet",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "400", description = "Invalid pet value") ],
security = [ SecurityRequirement(name = "petstore_auth", scopes = [ "write:pets", "read:pets" ]) ]
@@ -79,7 +79,7 @@ class PetApiController() {
@Operation(
summary = "Finds Pets by status",
operationId = "findPetsByStatus",
- description = """Multiple status values can be provided with comma separated strings""",
+ description = "Multiple status values can be provided with comma separated strings",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(array = ArraySchema(schema = Schema(implementation = Pet::class)))]),
ApiResponse(responseCode = "400", description = "Invalid status value") ],
@@ -100,7 +100,7 @@ class PetApiController() {
@Operation(
summary = "Finds Pets by tags",
operationId = "findPetsByTags",
- description = """Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.""",
+ description = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(array = ArraySchema(schema = Schema(implementation = Pet::class)))]),
ApiResponse(responseCode = "400", description = "Invalid tag value") ],
@@ -122,7 +122,7 @@ class PetApiController() {
@Operation(
summary = "Find pet by ID",
operationId = "getPetById",
- description = """Returns a single pet""",
+ description = "Returns a single pet",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = Pet::class))]),
ApiResponse(responseCode = "400", description = "Invalid ID supplied"),
@@ -144,7 +144,7 @@ class PetApiController() {
@Operation(
summary = "Update an existing pet",
operationId = "updatePet",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = Pet::class))]),
ApiResponse(responseCode = "400", description = "Invalid ID supplied"),
@@ -168,7 +168,7 @@ class PetApiController() {
@Operation(
summary = "Updates a pet in the store with form data",
operationId = "updatePetWithForm",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "405", description = "Invalid input") ],
security = [ SecurityRequirement(name = "petstore_auth", scopes = [ "write:pets", "read:pets" ]) ]
@@ -190,7 +190,7 @@ class PetApiController() {
@Operation(
summary = "uploads an image",
operationId = "uploadFile",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = ModelApiResponse::class))]) ],
security = [ SecurityRequirement(name = "petstore_auth", scopes = [ "write:pets", "read:pets" ]) ]
diff --git a/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/api/StoreApiController.kt b/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/api/StoreApiController.kt
index e9e3620a9e75..a2db31980e75 100644
--- a/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/api/StoreApiController.kt
+++ b/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/api/StoreApiController.kt
@@ -36,7 +36,7 @@ class StoreApiController() {
@Operation(
summary = "Delete purchase order by ID",
operationId = "deleteOrder",
- description = """For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors""",
+ description = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors",
responses = [
ApiResponse(responseCode = "400", description = "Invalid ID supplied"),
ApiResponse(responseCode = "404", description = "Order not found") ]
@@ -55,7 +55,7 @@ class StoreApiController() {
@Operation(
summary = "Returns pet inventories by status",
operationId = "getInventory",
- description = """Returns a map of status codes to quantities""",
+ description = "Returns a map of status codes to quantities",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = kotlin.collections.Map::class))]) ],
security = [ SecurityRequirement(name = "api_key") ]
@@ -73,7 +73,7 @@ class StoreApiController() {
@Operation(
summary = "Find purchase order by ID",
operationId = "getOrderById",
- description = """For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions""",
+ description = "For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = Order::class))]),
ApiResponse(responseCode = "400", description = "Invalid ID supplied"),
@@ -94,7 +94,7 @@ class StoreApiController() {
@Operation(
summary = "Place an order for a pet",
operationId = "placeOrder",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = Order::class))]),
ApiResponse(responseCode = "400", description = "Invalid Order") ]
diff --git a/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/api/UserApiController.kt b/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/api/UserApiController.kt
index b59055789659..5eaa964b8a8e 100644
--- a/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/api/UserApiController.kt
+++ b/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/api/UserApiController.kt
@@ -36,7 +36,7 @@ class UserApiController() {
@Operation(
summary = "Create user",
operationId = "createUser",
- description = """This can only be done by the logged in user.""",
+ description = "This can only be done by the logged in user.",
responses = [
ApiResponse(responseCode = "200", description = "successful operation") ],
security = [ SecurityRequirement(name = "api_key") ]
@@ -56,7 +56,7 @@ class UserApiController() {
@Operation(
summary = "Creates list of users with given input array",
operationId = "createUsersWithArrayInput",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation") ],
security = [ SecurityRequirement(name = "api_key") ]
@@ -76,7 +76,7 @@ class UserApiController() {
@Operation(
summary = "Creates list of users with given input array",
operationId = "createUsersWithListInput",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation") ],
security = [ SecurityRequirement(name = "api_key") ]
@@ -96,7 +96,7 @@ class UserApiController() {
@Operation(
summary = "Delete user",
operationId = "deleteUser",
- description = """This can only be done by the logged in user.""",
+ description = "This can only be done by the logged in user.",
responses = [
ApiResponse(responseCode = "400", description = "Invalid username supplied"),
ApiResponse(responseCode = "404", description = "User not found") ],
@@ -116,7 +116,7 @@ class UserApiController() {
@Operation(
summary = "Get user by user name",
operationId = "getUserByName",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = User::class))]),
ApiResponse(responseCode = "400", description = "Invalid username supplied"),
@@ -137,7 +137,7 @@ class UserApiController() {
@Operation(
summary = "Logs user into the system",
operationId = "loginUser",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = kotlin.String::class))]),
ApiResponse(responseCode = "400", description = "Invalid username/password supplied") ]
@@ -158,7 +158,7 @@ class UserApiController() {
@Operation(
summary = "Logs out current logged in user session",
operationId = "logoutUser",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation") ],
security = [ SecurityRequirement(name = "api_key") ]
@@ -175,7 +175,7 @@ class UserApiController() {
@Operation(
summary = "Updated user",
operationId = "updateUser",
- description = """This can only be done by the logged in user.""",
+ description = "This can only be done by the logged in user.",
responses = [
ApiResponse(responseCode = "400", description = "Invalid user supplied"),
ApiResponse(responseCode = "404", description = "User not found") ],
diff --git a/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/model/PetWithSpecialProps.kt b/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/model/PetWithSpecialProps.kt
new file mode 100644
index 000000000000..b2bd67bd89a2
--- /dev/null
+++ b/samples/server/petstore/kotlin-spring-default/src/main/kotlin/org/openapitools/model/PetWithSpecialProps.kt
@@ -0,0 +1,35 @@
+package org.openapitools.model
+
+import java.util.Objects
+import com.fasterxml.jackson.annotation.JsonProperty
+import com.fasterxml.jackson.annotation.JsonSetter
+import com.fasterxml.jackson.annotation.Nulls
+import javax.validation.constraints.DecimalMax
+import javax.validation.constraints.DecimalMin
+import javax.validation.constraints.Email
+import javax.validation.constraints.Max
+import javax.validation.constraints.Min
+import javax.validation.constraints.NotNull
+import javax.validation.constraints.Pattern
+import javax.validation.constraints.Size
+import javax.validation.Valid
+import io.swagger.v3.oas.annotations.media.Schema
+
+/**
+ * Model with $-prefixed property names for escaping tests (Issue 20502)
+ * @param dollarId Property with $-prefix in name; default has $dollar and backslash \\
+ * @param nameDollarSuffix Property with $ mid-name; description has backslash \\ and quote \"
+ */
+data class PetWithSpecialProps(
+
+ @Schema(example = "null", description = "Property with \$-prefix in name; default has \$dollar and backslash \\")
+ @field:JsonSetter(nulls = Nulls.FAIL)
+ @get:JsonProperty("\$id") val dollarId: kotlin.String? = "hello \$world",
+
+ @Schema(example = "null", description = "Property with \$ mid-name; description has backslash \\ and quote \"")
+ @field:JsonSetter(nulls = Nulls.FAIL)
+ @get:JsonProperty("name\$Suffix") val nameDollarSuffix: kotlin.String? = null
+) {
+
+}
+
diff --git a/samples/server/petstore/kotlin-spring-default/src/main/resources/openapi.yaml b/samples/server/petstore/kotlin-spring-default/src/main/resources/openapi.yaml
index 522cfa16779d..437978ee9af2 100644
--- a/samples/server/petstore/kotlin-spring-default/src/main/resources/openapi.yaml
+++ b/samples/server/petstore/kotlin-spring-default/src/main/resources/openapi.yaml
@@ -856,6 +856,20 @@ components:
- items:
type: string
type: array
+ PetWithSpecialProps:
+ description: Model with $-prefixed property names for escaping tests (Issue
+ 20502)
+ properties:
+ $id:
+ default: hello $world
+ description: Property with $-prefix in name; default has $dollar and backslash
+ \
+ type: string
+ name$Suffix:
+ description: Property with $ mid-name; description has backslash \ and quote
+ "
+ type: string
+ type: object
updatePetWithForm_request:
properties:
name:
diff --git a/samples/server/petstore/kotlin-springboot-bigdecimal-default/src/main/kotlin/org/openapitools/api/TestApiController.kt b/samples/server/petstore/kotlin-springboot-bigdecimal-default/src/main/kotlin/org/openapitools/api/TestApiController.kt
index 64844ce66fb6..7242518f7925 100644
--- a/samples/server/petstore/kotlin-springboot-bigdecimal-default/src/main/kotlin/org/openapitools/api/TestApiController.kt
+++ b/samples/server/petstore/kotlin-springboot-bigdecimal-default/src/main/kotlin/org/openapitools/api/TestApiController.kt
@@ -36,7 +36,7 @@ class TestApiController() {
@Operation(
summary = "",
operationId = "testPost",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "Successful operation") ]
)
diff --git a/samples/server/petstore/kotlin-springboot-delegate-nodefaults/src/main/kotlin/org/openapitools/api/PetApi.kt b/samples/server/petstore/kotlin-springboot-delegate-nodefaults/src/main/kotlin/org/openapitools/api/PetApi.kt
index e85f92fcef3a..d4046045c792 100644
--- a/samples/server/petstore/kotlin-springboot-delegate-nodefaults/src/main/kotlin/org/openapitools/api/PetApi.kt
+++ b/samples/server/petstore/kotlin-springboot-delegate-nodefaults/src/main/kotlin/org/openapitools/api/PetApi.kt
@@ -45,7 +45,7 @@ interface PetApi {
tags = ["pet",],
summary = "Add a new pet to the store",
operationId = "addPet",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = Pet::class))]),
ApiResponse(responseCode = "405", description = "Invalid input")
@@ -69,7 +69,7 @@ interface PetApi {
tags = ["pet",],
summary = "Deletes a pet",
operationId = "deletePet",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "400", description = "Invalid pet value")
],
@@ -91,7 +91,7 @@ interface PetApi {
tags = ["pet",],
summary = "Finds Pets by status",
operationId = "findPetsByStatus",
- description = """Multiple status values can be provided with comma separated strings""",
+ description = "Multiple status values can be provided with comma separated strings",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(array = ArraySchema(schema = Schema(implementation = Pet::class)))]),
ApiResponse(responseCode = "400", description = "Invalid status value")
@@ -114,7 +114,7 @@ interface PetApi {
tags = ["pet",],
summary = "Finds Pets by tags",
operationId = "findPetsByTags",
- description = """Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.""",
+ description = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(array = ArraySchema(schema = Schema(implementation = Pet::class)))]),
ApiResponse(responseCode = "400", description = "Invalid tag value")
@@ -138,7 +138,7 @@ interface PetApi {
tags = ["pet",],
summary = "Find pet by ID",
operationId = "getPetById",
- description = """Returns a single pet""",
+ description = "Returns a single pet",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = Pet::class))]),
ApiResponse(responseCode = "400", description = "Invalid ID supplied"),
@@ -162,7 +162,7 @@ interface PetApi {
tags = ["pet",],
summary = "Update an existing pet",
operationId = "updatePet",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = Pet::class))]),
ApiResponse(responseCode = "400", description = "Invalid ID supplied"),
@@ -188,7 +188,7 @@ interface PetApi {
tags = ["pet",],
summary = "Updates a pet in the store with form data",
operationId = "updatePetWithForm",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "405", description = "Invalid input")
],
@@ -212,7 +212,7 @@ interface PetApi {
tags = ["pet",],
summary = "uploads an image",
operationId = "uploadFile",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = ModelApiResponse::class))])
],
diff --git a/samples/server/petstore/kotlin-springboot-delegate-nodefaults/src/main/kotlin/org/openapitools/api/StoreApi.kt b/samples/server/petstore/kotlin-springboot-delegate-nodefaults/src/main/kotlin/org/openapitools/api/StoreApi.kt
index c18396ffe558..6092c7851175 100644
--- a/samples/server/petstore/kotlin-springboot-delegate-nodefaults/src/main/kotlin/org/openapitools/api/StoreApi.kt
+++ b/samples/server/petstore/kotlin-springboot-delegate-nodefaults/src/main/kotlin/org/openapitools/api/StoreApi.kt
@@ -44,7 +44,7 @@ interface StoreApi {
tags = ["store",],
summary = "Delete purchase order by ID",
operationId = "deleteOrder",
- description = """For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors""",
+ description = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors",
responses = [
ApiResponse(responseCode = "400", description = "Invalid ID supplied"),
ApiResponse(responseCode = "404", description = "Order not found")
@@ -65,7 +65,7 @@ interface StoreApi {
tags = ["store",],
summary = "Returns pet inventories by status",
operationId = "getInventory",
- description = """Returns a map of status codes to quantities""",
+ description = "Returns a map of status codes to quantities",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = kotlin.collections.Map::class))])
],
@@ -85,7 +85,7 @@ interface StoreApi {
tags = ["store",],
summary = "Find purchase order by ID",
operationId = "getOrderById",
- description = """For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions""",
+ description = "For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = Order::class))]),
ApiResponse(responseCode = "400", description = "Invalid ID supplied"),
@@ -108,7 +108,7 @@ interface StoreApi {
tags = ["store",],
summary = "Place an order for a pet",
operationId = "placeOrder",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = Order::class))]),
ApiResponse(responseCode = "400", description = "Invalid Order")
diff --git a/samples/server/petstore/kotlin-springboot-delegate-nodefaults/src/main/kotlin/org/openapitools/api/UserApi.kt b/samples/server/petstore/kotlin-springboot-delegate-nodefaults/src/main/kotlin/org/openapitools/api/UserApi.kt
index fff346fae41b..79900ee96a3c 100644
--- a/samples/server/petstore/kotlin-springboot-delegate-nodefaults/src/main/kotlin/org/openapitools/api/UserApi.kt
+++ b/samples/server/petstore/kotlin-springboot-delegate-nodefaults/src/main/kotlin/org/openapitools/api/UserApi.kt
@@ -44,7 +44,7 @@ interface UserApi {
tags = ["user",],
summary = "Create user",
operationId = "createUser",
- description = """This can only be done by the logged in user.""",
+ description = "This can only be done by the logged in user.",
responses = [
ApiResponse(responseCode = "200", description = "successful operation")
],
@@ -66,7 +66,7 @@ interface UserApi {
tags = ["user",],
summary = "Creates list of users with given input array",
operationId = "createUsersWithArrayInput",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation")
],
@@ -88,7 +88,7 @@ interface UserApi {
tags = ["user",],
summary = "Creates list of users with given input array",
operationId = "createUsersWithListInput",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation")
],
@@ -110,7 +110,7 @@ interface UserApi {
tags = ["user",],
summary = "Delete user",
operationId = "deleteUser",
- description = """This can only be done by the logged in user.""",
+ description = "This can only be done by the logged in user.",
responses = [
ApiResponse(responseCode = "400", description = "Invalid username supplied"),
ApiResponse(responseCode = "404", description = "User not found")
@@ -132,7 +132,7 @@ interface UserApi {
tags = ["user",],
summary = "Get user by user name",
operationId = "getUserByName",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = User::class))]),
ApiResponse(responseCode = "400", description = "Invalid username supplied"),
@@ -155,7 +155,7 @@ interface UserApi {
tags = ["user",],
summary = "Logs user into the system",
operationId = "loginUser",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = kotlin.String::class))]),
ApiResponse(responseCode = "400", description = "Invalid username/password supplied")
@@ -178,7 +178,7 @@ interface UserApi {
tags = ["user",],
summary = "Logs out current logged in user session",
operationId = "logoutUser",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation")
],
@@ -197,7 +197,7 @@ interface UserApi {
tags = ["user",],
summary = "Updated user",
operationId = "updateUser",
- description = """This can only be done by the logged in user.""",
+ description = "This can only be done by the logged in user.",
responses = [
ApiResponse(responseCode = "400", description = "Invalid user supplied"),
ApiResponse(responseCode = "404", description = "User not found")
diff --git a/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/api/PetApi.kt b/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/api/PetApi.kt
index 3172c6b0a90f..a8f0a55818a5 100644
--- a/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/api/PetApi.kt
+++ b/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/api/PetApi.kt
@@ -44,7 +44,7 @@ interface PetApi {
tags = ["pet",],
summary = "Add a new pet to the store",
operationId = "addPet",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = Pet::class))]),
ApiResponse(responseCode = "405", description = "Invalid input")
@@ -68,7 +68,7 @@ interface PetApi {
tags = ["pet",],
summary = "Deletes a pet",
operationId = "deletePet",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "400", description = "Invalid pet value")
],
@@ -90,7 +90,7 @@ interface PetApi {
tags = ["pet",],
summary = "Finds Pets by status",
operationId = "findPetsByStatus",
- description = """Multiple status values can be provided with comma separated strings""",
+ description = "Multiple status values can be provided with comma separated strings",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(array = ArraySchema(schema = Schema(implementation = Pet::class)))]),
ApiResponse(responseCode = "400", description = "Invalid status value")
@@ -113,7 +113,7 @@ interface PetApi {
tags = ["pet",],
summary = "Finds Pets by tags",
operationId = "findPetsByTags",
- description = """Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.""",
+ description = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(array = ArraySchema(schema = Schema(implementation = Pet::class)))]),
ApiResponse(responseCode = "400", description = "Invalid tag value")
@@ -137,7 +137,7 @@ interface PetApi {
tags = ["pet",],
summary = "Find pet by ID",
operationId = "getPetById",
- description = """Returns a single pet""",
+ description = "Returns a single pet",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = Pet::class))]),
ApiResponse(responseCode = "400", description = "Invalid ID supplied"),
@@ -161,7 +161,7 @@ interface PetApi {
tags = ["pet",],
summary = "Update an existing pet",
operationId = "updatePet",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = Pet::class))]),
ApiResponse(responseCode = "400", description = "Invalid ID supplied"),
@@ -187,7 +187,7 @@ interface PetApi {
tags = ["pet",],
summary = "Updates a pet in the store with form data",
operationId = "updatePetWithForm",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "405", description = "Invalid input")
],
@@ -211,7 +211,7 @@ interface PetApi {
tags = ["pet",],
summary = "uploads an image",
operationId = "uploadFile",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = ModelApiResponse::class))])
],
diff --git a/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/api/PetApiDelegate.kt b/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/api/PetApiDelegate.kt
index 961378e9c47f..1139c2d956c9 100644
--- a/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/api/PetApiDelegate.kt
+++ b/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/api/PetApiDelegate.kt
@@ -26,11 +26,11 @@ interface PetApiDelegate {
getRequest().ifPresent { request ->
for (mediaType in MediaType.parseMediaTypes(request.getHeader("Accept"))) {
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
- ApiUtil.setExampleResponse(request, "application/json", "{ \"id\" : 0, \"category\" : { \"id\" : 6, \"name\" : \"name\" }, \"name\" : \"doggie\", \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"tags\" : [ { \"id\" : 1, \"name\" : \"name\" }, { \"id\" : 1, \"name\" : \"name\" } ], \"status\" : \"available\"}")
+ ApiUtil.setExampleResponse(request, "application/json", "{\n \"id\" : 0,\n \"category\" : {\n \"id\" : 6,\n \"name\" : \"name\"\n },\n \"name\" : \"doggie\",\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"tags\" : [ {\n \"id\" : 1,\n \"name\" : \"name\"\n }, {\n \"id\" : 1,\n \"name\" : \"name\"\n } ],\n \"status\" : \"available\"\n}")
break
}
if (mediaType.isCompatibleWith(MediaType.valueOf("application/xml"))) {
- ApiUtil.setExampleResponse(request, "application/xml", " 123456789 123456789 aeiou doggie aeiou 123456789 aeiou aeiou")
+ ApiUtil.setExampleResponse(request, "application/xml", "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n")
break
}
}
@@ -57,11 +57,11 @@ interface PetApiDelegate {
getRequest().ifPresent { request ->
for (mediaType in MediaType.parseMediaTypes(request.getHeader("Accept"))) {
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
- ApiUtil.setExampleResponse(request, "application/json", "[ { \"id\" : 0, \"category\" : { \"id\" : 6, \"name\" : \"name\" }, \"name\" : \"doggie\", \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"tags\" : [ { \"id\" : 1, \"name\" : \"name\" }, { \"id\" : 1, \"name\" : \"name\" } ], \"status\" : \"available\"}, { \"id\" : 0, \"category\" : { \"id\" : 6, \"name\" : \"name\" }, \"name\" : \"doggie\", \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"tags\" : [ { \"id\" : 1, \"name\" : \"name\" }, { \"id\" : 1, \"name\" : \"name\" } ], \"status\" : \"available\"} ]")
+ ApiUtil.setExampleResponse(request, "application/json", "[ {\n \"id\" : 0,\n \"category\" : {\n \"id\" : 6,\n \"name\" : \"name\"\n },\n \"name\" : \"doggie\",\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"tags\" : [ {\n \"id\" : 1,\n \"name\" : \"name\"\n }, {\n \"id\" : 1,\n \"name\" : \"name\"\n } ],\n \"status\" : \"available\"\n}, {\n \"id\" : 0,\n \"category\" : {\n \"id\" : 6,\n \"name\" : \"name\"\n },\n \"name\" : \"doggie\",\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"tags\" : [ {\n \"id\" : 1,\n \"name\" : \"name\"\n }, {\n \"id\" : 1,\n \"name\" : \"name\"\n } ],\n \"status\" : \"available\"\n} ]")
break
}
if (mediaType.isCompatibleWith(MediaType.valueOf("application/xml"))) {
- ApiUtil.setExampleResponse(request, "application/xml", " 123456789 123456789 aeiou doggie aeiou 123456789 aeiou aeiou")
+ ApiUtil.setExampleResponse(request, "application/xml", "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n")
break
}
}
@@ -78,11 +78,11 @@ interface PetApiDelegate {
getRequest().ifPresent { request ->
for (mediaType in MediaType.parseMediaTypes(request.getHeader("Accept"))) {
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
- ApiUtil.setExampleResponse(request, "application/json", "[ { \"id\" : 0, \"category\" : { \"id\" : 6, \"name\" : \"name\" }, \"name\" : \"doggie\", \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"tags\" : [ { \"id\" : 1, \"name\" : \"name\" }, { \"id\" : 1, \"name\" : \"name\" } ], \"status\" : \"available\"}, { \"id\" : 0, \"category\" : { \"id\" : 6, \"name\" : \"name\" }, \"name\" : \"doggie\", \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"tags\" : [ { \"id\" : 1, \"name\" : \"name\" }, { \"id\" : 1, \"name\" : \"name\" } ], \"status\" : \"available\"} ]")
+ ApiUtil.setExampleResponse(request, "application/json", "[ {\n \"id\" : 0,\n \"category\" : {\n \"id\" : 6,\n \"name\" : \"name\"\n },\n \"name\" : \"doggie\",\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"tags\" : [ {\n \"id\" : 1,\n \"name\" : \"name\"\n }, {\n \"id\" : 1,\n \"name\" : \"name\"\n } ],\n \"status\" : \"available\"\n}, {\n \"id\" : 0,\n \"category\" : {\n \"id\" : 6,\n \"name\" : \"name\"\n },\n \"name\" : \"doggie\",\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"tags\" : [ {\n \"id\" : 1,\n \"name\" : \"name\"\n }, {\n \"id\" : 1,\n \"name\" : \"name\"\n } ],\n \"status\" : \"available\"\n} ]")
break
}
if (mediaType.isCompatibleWith(MediaType.valueOf("application/xml"))) {
- ApiUtil.setExampleResponse(request, "application/xml", " 123456789 123456789 aeiou doggie aeiou 123456789 aeiou aeiou")
+ ApiUtil.setExampleResponse(request, "application/xml", "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n")
break
}
}
@@ -99,11 +99,11 @@ interface PetApiDelegate {
getRequest().ifPresent { request ->
for (mediaType in MediaType.parseMediaTypes(request.getHeader("Accept"))) {
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
- ApiUtil.setExampleResponse(request, "application/json", "{ \"id\" : 0, \"category\" : { \"id\" : 6, \"name\" : \"name\" }, \"name\" : \"doggie\", \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"tags\" : [ { \"id\" : 1, \"name\" : \"name\" }, { \"id\" : 1, \"name\" : \"name\" } ], \"status\" : \"available\"}")
+ ApiUtil.setExampleResponse(request, "application/json", "{\n \"id\" : 0,\n \"category\" : {\n \"id\" : 6,\n \"name\" : \"name\"\n },\n \"name\" : \"doggie\",\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"tags\" : [ {\n \"id\" : 1,\n \"name\" : \"name\"\n }, {\n \"id\" : 1,\n \"name\" : \"name\"\n } ],\n \"status\" : \"available\"\n}")
break
}
if (mediaType.isCompatibleWith(MediaType.valueOf("application/xml"))) {
- ApiUtil.setExampleResponse(request, "application/xml", " 123456789 123456789 aeiou doggie aeiou 123456789 aeiou aeiou")
+ ApiUtil.setExampleResponse(request, "application/xml", "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n")
break
}
}
@@ -120,11 +120,11 @@ interface PetApiDelegate {
getRequest().ifPresent { request ->
for (mediaType in MediaType.parseMediaTypes(request.getHeader("Accept"))) {
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
- ApiUtil.setExampleResponse(request, "application/json", "{ \"id\" : 0, \"category\" : { \"id\" : 6, \"name\" : \"name\" }, \"name\" : \"doggie\", \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"tags\" : [ { \"id\" : 1, \"name\" : \"name\" }, { \"id\" : 1, \"name\" : \"name\" } ], \"status\" : \"available\"}")
+ ApiUtil.setExampleResponse(request, "application/json", "{\n \"id\" : 0,\n \"category\" : {\n \"id\" : 6,\n \"name\" : \"name\"\n },\n \"name\" : \"doggie\",\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"tags\" : [ {\n \"id\" : 1,\n \"name\" : \"name\"\n }, {\n \"id\" : 1,\n \"name\" : \"name\"\n } ],\n \"status\" : \"available\"\n}")
break
}
if (mediaType.isCompatibleWith(MediaType.valueOf("application/xml"))) {
- ApiUtil.setExampleResponse(request, "application/xml", " 123456789 doggie aeiou aeiou")
+ ApiUtil.setExampleResponse(request, "application/xml", "\n 123456789\n doggie\n \n aeiou\n \n \n \n aeiou\n")
break
}
}
@@ -154,7 +154,7 @@ interface PetApiDelegate {
getRequest().ifPresent { request ->
for (mediaType in MediaType.parseMediaTypes(request.getHeader("Accept"))) {
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
- ApiUtil.setExampleResponse(request, "application/json", "{ \"code\" : 0, \"type\" : \"type\", \"message\" : \"message\"}")
+ ApiUtil.setExampleResponse(request, "application/json", "{\n \"code\" : 0,\n \"type\" : \"type\",\n \"message\" : \"message\"\n}")
break
}
}
diff --git a/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/api/StoreApi.kt b/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/api/StoreApi.kt
index ce81329bb3be..e60594164640 100644
--- a/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/api/StoreApi.kt
+++ b/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/api/StoreApi.kt
@@ -43,7 +43,7 @@ interface StoreApi {
tags = ["store",],
summary = "Delete purchase order by ID",
operationId = "deleteOrder",
- description = """For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors""",
+ description = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors",
responses = [
ApiResponse(responseCode = "400", description = "Invalid ID supplied"),
ApiResponse(responseCode = "404", description = "Order not found")
@@ -64,7 +64,7 @@ interface StoreApi {
tags = ["store",],
summary = "Returns pet inventories by status",
operationId = "getInventory",
- description = """Returns a map of status codes to quantities""",
+ description = "Returns a map of status codes to quantities",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = kotlin.collections.Map::class))])
],
@@ -84,7 +84,7 @@ interface StoreApi {
tags = ["store",],
summary = "Find purchase order by ID",
operationId = "getOrderById",
- description = """For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions""",
+ description = "For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = Order::class))]),
ApiResponse(responseCode = "400", description = "Invalid ID supplied"),
@@ -107,7 +107,7 @@ interface StoreApi {
tags = ["store",],
summary = "Place an order for a pet",
operationId = "placeOrder",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = Order::class))]),
ApiResponse(responseCode = "400", description = "Invalid Order")
diff --git a/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/api/StoreApiDelegate.kt b/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/api/StoreApiDelegate.kt
index 868120930b9c..de89b96ee86c 100644
--- a/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/api/StoreApiDelegate.kt
+++ b/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/api/StoreApiDelegate.kt
@@ -43,11 +43,11 @@ interface StoreApiDelegate {
getRequest().ifPresent { request ->
for (mediaType in MediaType.parseMediaTypes(request.getHeader("Accept"))) {
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
- ApiUtil.setExampleResponse(request, "application/json", "{ \"id\" : 0, \"petId\" : 6, \"quantity\" : 1, \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\", \"status\" : \"placed\", \"complete\" : false}")
+ ApiUtil.setExampleResponse(request, "application/json", "{\n \"id\" : 0,\n \"petId\" : 6,\n \"quantity\" : 1,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"status\" : \"placed\",\n \"complete\" : false\n}")
break
}
if (mediaType.isCompatibleWith(MediaType.valueOf("application/xml"))) {
- ApiUtil.setExampleResponse(request, "application/xml", " 123456789 123456789 123 2000-01-23T04:56:07.000Z aeiou true")
+ ApiUtil.setExampleResponse(request, "application/xml", "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n")
break
}
}
@@ -64,11 +64,11 @@ interface StoreApiDelegate {
getRequest().ifPresent { request ->
for (mediaType in MediaType.parseMediaTypes(request.getHeader("Accept"))) {
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
- ApiUtil.setExampleResponse(request, "application/json", "{ \"id\" : 0, \"petId\" : 6, \"quantity\" : 1, \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\", \"status\" : \"placed\", \"complete\" : false}")
+ ApiUtil.setExampleResponse(request, "application/json", "{\n \"id\" : 0,\n \"petId\" : 6,\n \"quantity\" : 1,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"status\" : \"placed\",\n \"complete\" : false\n}")
break
}
if (mediaType.isCompatibleWith(MediaType.valueOf("application/xml"))) {
- ApiUtil.setExampleResponse(request, "application/xml", " 123456789 123456789 123 2000-01-23T04:56:07.000Z aeiou true")
+ ApiUtil.setExampleResponse(request, "application/xml", "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n")
break
}
}
diff --git a/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/api/UserApi.kt b/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/api/UserApi.kt
index 5c6b0adfc1a2..2aed2bd9a363 100644
--- a/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/api/UserApi.kt
+++ b/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/api/UserApi.kt
@@ -43,7 +43,7 @@ interface UserApi {
tags = ["user",],
summary = "Create user",
operationId = "createUser",
- description = """This can only be done by the logged in user.""",
+ description = "This can only be done by the logged in user.",
responses = [
ApiResponse(responseCode = "200", description = "successful operation")
],
@@ -65,7 +65,7 @@ interface UserApi {
tags = ["user",],
summary = "Creates list of users with given input array",
operationId = "createUsersWithArrayInput",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation")
],
@@ -87,7 +87,7 @@ interface UserApi {
tags = ["user",],
summary = "Creates list of users with given input array",
operationId = "createUsersWithListInput",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation")
],
@@ -109,7 +109,7 @@ interface UserApi {
tags = ["user",],
summary = "Delete user",
operationId = "deleteUser",
- description = """This can only be done by the logged in user.""",
+ description = "This can only be done by the logged in user.",
responses = [
ApiResponse(responseCode = "400", description = "Invalid username supplied"),
ApiResponse(responseCode = "404", description = "User not found")
@@ -131,7 +131,7 @@ interface UserApi {
tags = ["user",],
summary = "Get user by user name",
operationId = "getUserByName",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = User::class))]),
ApiResponse(responseCode = "400", description = "Invalid username supplied"),
@@ -154,7 +154,7 @@ interface UserApi {
tags = ["user",],
summary = "Logs user into the system",
operationId = "loginUser",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = kotlin.String::class))]),
ApiResponse(responseCode = "400", description = "Invalid username/password supplied")
@@ -177,7 +177,7 @@ interface UserApi {
tags = ["user",],
summary = "Logs out current logged in user session",
operationId = "logoutUser",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation")
],
@@ -196,7 +196,7 @@ interface UserApi {
tags = ["user",],
summary = "Updated user",
operationId = "updateUser",
- description = """This can only be done by the logged in user.""",
+ description = "This can only be done by the logged in user.",
responses = [
ApiResponse(responseCode = "400", description = "Invalid user supplied"),
ApiResponse(responseCode = "404", description = "User not found")
diff --git a/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/api/UserApiDelegate.kt b/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/api/UserApiDelegate.kt
index c1b629fd7579..6291fc0372c7 100644
--- a/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/api/UserApiDelegate.kt
+++ b/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/api/UserApiDelegate.kt
@@ -61,11 +61,11 @@ interface UserApiDelegate {
getRequest().ifPresent { request ->
for (mediaType in MediaType.parseMediaTypes(request.getHeader("Accept"))) {
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
- ApiUtil.setExampleResponse(request, "application/json", "{ \"id\" : 0, \"username\" : \"username\", \"firstName\" : \"firstName\", \"lastName\" : \"lastName\", \"email\" : \"email\", \"password\" : \"password\", \"phone\" : \"phone\", \"userStatus\" : 6}")
+ ApiUtil.setExampleResponse(request, "application/json", "{\n \"id\" : 0,\n \"username\" : \"username\",\n \"firstName\" : \"firstName\",\n \"lastName\" : \"lastName\",\n \"email\" : \"email\",\n \"password\" : \"password\",\n \"phone\" : \"phone\",\n \"userStatus\" : 6\n}")
break
}
if (mediaType.isCompatibleWith(MediaType.valueOf("application/xml"))) {
- ApiUtil.setExampleResponse(request, "application/xml", " 123456789 aeiou aeiou aeiou aeiou aeiou aeiou 123")
+ ApiUtil.setExampleResponse(request, "application/xml", "\n 123456789\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n 123\n")
break
}
}
diff --git a/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/api/PetApiController.kt b/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/api/PetApiController.kt
index e18012463efb..ad60def2e455 100644
--- a/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/api/PetApiController.kt
+++ b/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/api/PetApiController.kt
@@ -37,7 +37,7 @@ class PetApiController(@Autowired(required = true) val service: PetApiService) {
@Operation(
summary = "Add a new pet to the store",
operationId = "addPet",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "405", description = "Invalid input") ],
security = [ SecurityRequirement(name = "petstore_auth", scopes = [ "write:pets", "read:pets" ]) ]
@@ -57,7 +57,7 @@ class PetApiController(@Autowired(required = true) val service: PetApiService) {
@Operation(
summary = "Deletes a pet",
operationId = "deletePet",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "400", description = "Invalid pet value") ],
security = [ SecurityRequirement(name = "petstore_auth", scopes = [ "write:pets", "read:pets" ]) ]
@@ -77,7 +77,7 @@ class PetApiController(@Autowired(required = true) val service: PetApiService) {
@Operation(
summary = "Finds Pets by status",
operationId = "findPetsByStatus",
- description = """Multiple status values can be provided with comma separated strings""",
+ description = "Multiple status values can be provided with comma separated strings",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(array = ArraySchema(schema = Schema(implementation = Pet::class)))]),
ApiResponse(responseCode = "400", description = "Invalid status value") ],
@@ -98,7 +98,7 @@ class PetApiController(@Autowired(required = true) val service: PetApiService) {
@Operation(
summary = "Finds Pets by tags",
operationId = "findPetsByTags",
- description = """Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.""",
+ description = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(array = ArraySchema(schema = Schema(implementation = Pet::class)))]),
ApiResponse(responseCode = "400", description = "Invalid tag value") ],
@@ -120,7 +120,7 @@ class PetApiController(@Autowired(required = true) val service: PetApiService) {
@Operation(
summary = "Find pet by ID",
operationId = "getPetById",
- description = """Returns a single pet""",
+ description = "Returns a single pet",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = Pet::class))]),
ApiResponse(responseCode = "400", description = "Invalid ID supplied"),
@@ -142,7 +142,7 @@ class PetApiController(@Autowired(required = true) val service: PetApiService) {
@Operation(
summary = "Update an existing pet",
operationId = "updatePet",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "400", description = "Invalid ID supplied"),
ApiResponse(responseCode = "404", description = "Pet not found"),
@@ -164,7 +164,7 @@ class PetApiController(@Autowired(required = true) val service: PetApiService) {
@Operation(
summary = "Updates a pet in the store with form data",
operationId = "updatePetWithForm",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "405", description = "Invalid input") ],
security = [ SecurityRequirement(name = "petstore_auth", scopes = [ "write:pets", "read:pets" ]) ]
@@ -186,7 +186,7 @@ class PetApiController(@Autowired(required = true) val service: PetApiService) {
@Operation(
summary = "uploads an image",
operationId = "uploadFile",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = ModelApiResponse::class))]) ],
security = [ SecurityRequirement(name = "petstore_auth", scopes = [ "write:pets", "read:pets" ]) ]
diff --git a/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/api/StoreApiController.kt b/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/api/StoreApiController.kt
index 1884db667f9c..ad4105a5eb68 100644
--- a/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/api/StoreApiController.kt
+++ b/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/api/StoreApiController.kt
@@ -36,7 +36,7 @@ class StoreApiController(@Autowired(required = true) val service: StoreApiServic
@Operation(
summary = "Delete purchase order by ID",
operationId = "deleteOrder",
- description = """For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors""",
+ description = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors",
responses = [
ApiResponse(responseCode = "400", description = "Invalid ID supplied"),
ApiResponse(responseCode = "404", description = "Order not found") ]
@@ -55,7 +55,7 @@ class StoreApiController(@Autowired(required = true) val service: StoreApiServic
@Operation(
summary = "Returns pet inventories by status",
operationId = "getInventory",
- description = """Returns a map of status codes to quantities""",
+ description = "Returns a map of status codes to quantities",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = kotlin.collections.Map::class))]) ],
security = [ SecurityRequirement(name = "api_key") ]
@@ -73,7 +73,7 @@ class StoreApiController(@Autowired(required = true) val service: StoreApiServic
@Operation(
summary = "Find purchase order by ID",
operationId = "getOrderById",
- description = """For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions""",
+ description = "For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = Order::class))]),
ApiResponse(responseCode = "400", description = "Invalid ID supplied"),
@@ -94,7 +94,7 @@ class StoreApiController(@Autowired(required = true) val service: StoreApiServic
@Operation(
summary = "Place an order for a pet",
operationId = "placeOrder",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = Order::class))]),
ApiResponse(responseCode = "400", description = "Invalid Order") ]
diff --git a/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/api/UserApiController.kt b/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/api/UserApiController.kt
index 7dd168a5cf20..98aa7380089a 100644
--- a/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/api/UserApiController.kt
+++ b/samples/server/petstore/kotlin-springboot-modelMutable/src/main/kotlin/org/openapitools/api/UserApiController.kt
@@ -36,7 +36,7 @@ class UserApiController(@Autowired(required = true) val service: UserApiService)
@Operation(
summary = "Create user",
operationId = "createUser",
- description = """This can only be done by the logged in user.""",
+ description = "This can only be done by the logged in user.",
responses = [
ApiResponse(responseCode = "200", description = "successful operation") ]
)
@@ -54,7 +54,7 @@ class UserApiController(@Autowired(required = true) val service: UserApiService)
@Operation(
summary = "Creates list of users with given input array",
operationId = "createUsersWithArrayInput",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation") ]
)
@@ -72,7 +72,7 @@ class UserApiController(@Autowired(required = true) val service: UserApiService)
@Operation(
summary = "Creates list of users with given input array",
operationId = "createUsersWithListInput",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation") ]
)
@@ -90,7 +90,7 @@ class UserApiController(@Autowired(required = true) val service: UserApiService)
@Operation(
summary = "Delete user",
operationId = "deleteUser",
- description = """This can only be done by the logged in user.""",
+ description = "This can only be done by the logged in user.",
responses = [
ApiResponse(responseCode = "400", description = "Invalid username supplied"),
ApiResponse(responseCode = "404", description = "User not found") ]
@@ -109,7 +109,7 @@ class UserApiController(@Autowired(required = true) val service: UserApiService)
@Operation(
summary = "Get user by user name",
operationId = "getUserByName",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = User::class))]),
ApiResponse(responseCode = "400", description = "Invalid username supplied"),
@@ -130,7 +130,7 @@ class UserApiController(@Autowired(required = true) val service: UserApiService)
@Operation(
summary = "Logs user into the system",
operationId = "loginUser",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = kotlin.String::class))]),
ApiResponse(responseCode = "400", description = "Invalid username/password supplied") ]
@@ -151,7 +151,7 @@ class UserApiController(@Autowired(required = true) val service: UserApiService)
@Operation(
summary = "Logs out current logged in user session",
operationId = "logoutUser",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation") ]
)
@@ -167,7 +167,7 @@ class UserApiController(@Autowired(required = true) val service: UserApiService)
@Operation(
summary = "Updated user",
operationId = "updateUser",
- description = """This can only be done by the logged in user.""",
+ description = "This can only be done by the logged in user.",
responses = [
ApiResponse(responseCode = "400", description = "Invalid user supplied"),
ApiResponse(responseCode = "404", description = "User not found") ]
diff --git a/samples/server/petstore/kotlin-springboot-multipart-request-model/src/main/kotlin/org/openapitools/api/MultipartMixedApiController.kt b/samples/server/petstore/kotlin-springboot-multipart-request-model/src/main/kotlin/org/openapitools/api/MultipartMixedApiController.kt
index dd50dc75d4d9..632484c3586f 100644
--- a/samples/server/petstore/kotlin-springboot-multipart-request-model/src/main/kotlin/org/openapitools/api/MultipartMixedApiController.kt
+++ b/samples/server/petstore/kotlin-springboot-multipart-request-model/src/main/kotlin/org/openapitools/api/MultipartMixedApiController.kt
@@ -37,7 +37,7 @@ class MultipartMixedApiController() {
@Operation(
summary = "",
operationId = "multipartMixed",
- description = """Mixed MultipartFile test""",
+ description = "Mixed MultipartFile test",
responses = [
ApiResponse(responseCode = "204", description = "Successful operation") ]
)
diff --git a/samples/server/petstore/kotlin-springboot-no-response-entity-delegate/src/main/kotlin/org/openapitools/api/PetApiDelegate.kt b/samples/server/petstore/kotlin-springboot-no-response-entity-delegate/src/main/kotlin/org/openapitools/api/PetApiDelegate.kt
index 34e7c96c8079..1528d7183347 100644
--- a/samples/server/petstore/kotlin-springboot-no-response-entity-delegate/src/main/kotlin/org/openapitools/api/PetApiDelegate.kt
+++ b/samples/server/petstore/kotlin-springboot-no-response-entity-delegate/src/main/kotlin/org/openapitools/api/PetApiDelegate.kt
@@ -43,11 +43,11 @@ interface PetApiDelegate {
getRequest().ifPresent { request ->
for (mediaType in MediaType.parseMediaTypes(request.getHeader("Accept"))) {
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
- ApiUtil.setExampleResponse(request, "application/json", "[ { \"id\" : 0, \"category\" : { \"id\" : 6, \"name\" : \"name\" }, \"name\" : \"doggie\", \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"tags\" : [ { \"id\" : 1, \"name\" : \"name\" }, { \"id\" : 1, \"name\" : \"name\" } ], \"status\" : \"available\"}, { \"id\" : 0, \"category\" : { \"id\" : 6, \"name\" : \"name\" }, \"name\" : \"doggie\", \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"tags\" : [ { \"id\" : 1, \"name\" : \"name\" }, { \"id\" : 1, \"name\" : \"name\" } ], \"status\" : \"available\"} ]")
+ ApiUtil.setExampleResponse(request, "application/json", "[ {\n \"id\" : 0,\n \"category\" : {\n \"id\" : 6,\n \"name\" : \"name\"\n },\n \"name\" : \"doggie\",\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"tags\" : [ {\n \"id\" : 1,\n \"name\" : \"name\"\n }, {\n \"id\" : 1,\n \"name\" : \"name\"\n } ],\n \"status\" : \"available\"\n}, {\n \"id\" : 0,\n \"category\" : {\n \"id\" : 6,\n \"name\" : \"name\"\n },\n \"name\" : \"doggie\",\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"tags\" : [ {\n \"id\" : 1,\n \"name\" : \"name\"\n }, {\n \"id\" : 1,\n \"name\" : \"name\"\n } ],\n \"status\" : \"available\"\n} ]")
break
}
if (mediaType.isCompatibleWith(MediaType.valueOf("application/xml"))) {
- ApiUtil.setExampleResponse(request, "application/xml", " 123456789 123456789 aeiou doggie aeiou 123456789 aeiou aeiou")
+ ApiUtil.setExampleResponse(request, "application/xml", "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n")
break
}
}
@@ -64,11 +64,11 @@ interface PetApiDelegate {
getRequest().ifPresent { request ->
for (mediaType in MediaType.parseMediaTypes(request.getHeader("Accept"))) {
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
- ApiUtil.setExampleResponse(request, "application/json", "[ { \"id\" : 0, \"category\" : { \"id\" : 6, \"name\" : \"name\" }, \"name\" : \"doggie\", \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"tags\" : [ { \"id\" : 1, \"name\" : \"name\" }, { \"id\" : 1, \"name\" : \"name\" } ], \"status\" : \"available\"}, { \"id\" : 0, \"category\" : { \"id\" : 6, \"name\" : \"name\" }, \"name\" : \"doggie\", \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"tags\" : [ { \"id\" : 1, \"name\" : \"name\" }, { \"id\" : 1, \"name\" : \"name\" } ], \"status\" : \"available\"} ]")
+ ApiUtil.setExampleResponse(request, "application/json", "[ {\n \"id\" : 0,\n \"category\" : {\n \"id\" : 6,\n \"name\" : \"name\"\n },\n \"name\" : \"doggie\",\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"tags\" : [ {\n \"id\" : 1,\n \"name\" : \"name\"\n }, {\n \"id\" : 1,\n \"name\" : \"name\"\n } ],\n \"status\" : \"available\"\n}, {\n \"id\" : 0,\n \"category\" : {\n \"id\" : 6,\n \"name\" : \"name\"\n },\n \"name\" : \"doggie\",\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"tags\" : [ {\n \"id\" : 1,\n \"name\" : \"name\"\n }, {\n \"id\" : 1,\n \"name\" : \"name\"\n } ],\n \"status\" : \"available\"\n} ]")
break
}
if (mediaType.isCompatibleWith(MediaType.valueOf("application/xml"))) {
- ApiUtil.setExampleResponse(request, "application/xml", " 123456789 123456789 aeiou doggie aeiou 123456789 aeiou aeiou")
+ ApiUtil.setExampleResponse(request, "application/xml", "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n")
break
}
}
@@ -85,11 +85,11 @@ interface PetApiDelegate {
getRequest().ifPresent { request ->
for (mediaType in MediaType.parseMediaTypes(request.getHeader("Accept"))) {
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
- ApiUtil.setExampleResponse(request, "application/json", "{ \"id\" : 0, \"category\" : { \"id\" : 6, \"name\" : \"name\" }, \"name\" : \"doggie\", \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ], \"tags\" : [ { \"id\" : 1, \"name\" : \"name\" }, { \"id\" : 1, \"name\" : \"name\" } ], \"status\" : \"available\"}")
+ ApiUtil.setExampleResponse(request, "application/json", "{\n \"id\" : 0,\n \"category\" : {\n \"id\" : 6,\n \"name\" : \"name\"\n },\n \"name\" : \"doggie\",\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"tags\" : [ {\n \"id\" : 1,\n \"name\" : \"name\"\n }, {\n \"id\" : 1,\n \"name\" : \"name\"\n } ],\n \"status\" : \"available\"\n}")
break
}
if (mediaType.isCompatibleWith(MediaType.valueOf("application/xml"))) {
- ApiUtil.setExampleResponse(request, "application/xml", " 123456789 123456789 aeiou doggie aeiou 123456789 aeiou aeiou")
+ ApiUtil.setExampleResponse(request, "application/xml", "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n")
break
}
}
@@ -128,7 +128,7 @@ interface PetApiDelegate {
getRequest().ifPresent { request ->
for (mediaType in MediaType.parseMediaTypes(request.getHeader("Accept"))) {
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
- ApiUtil.setExampleResponse(request, "application/json", "{ \"code\" : 0, \"type\" : \"type\", \"message\" : \"message\"}")
+ ApiUtil.setExampleResponse(request, "application/json", "{\n \"code\" : 0,\n \"type\" : \"type\",\n \"message\" : \"message\"\n}")
break
}
}
diff --git a/samples/server/petstore/kotlin-springboot-no-response-entity-delegate/src/main/kotlin/org/openapitools/api/StoreApiDelegate.kt b/samples/server/petstore/kotlin-springboot-no-response-entity-delegate/src/main/kotlin/org/openapitools/api/StoreApiDelegate.kt
index 149de0c4dc14..284b2eb8edc0 100644
--- a/samples/server/petstore/kotlin-springboot-no-response-entity-delegate/src/main/kotlin/org/openapitools/api/StoreApiDelegate.kt
+++ b/samples/server/petstore/kotlin-springboot-no-response-entity-delegate/src/main/kotlin/org/openapitools/api/StoreApiDelegate.kt
@@ -41,11 +41,11 @@ interface StoreApiDelegate {
getRequest().ifPresent { request ->
for (mediaType in MediaType.parseMediaTypes(request.getHeader("Accept"))) {
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
- ApiUtil.setExampleResponse(request, "application/json", "{ \"id\" : 0, \"petId\" : 6, \"quantity\" : 1, \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\", \"status\" : \"placed\", \"complete\" : false}")
+ ApiUtil.setExampleResponse(request, "application/json", "{\n \"id\" : 0,\n \"petId\" : 6,\n \"quantity\" : 1,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"status\" : \"placed\",\n \"complete\" : false\n}")
break
}
if (mediaType.isCompatibleWith(MediaType.valueOf("application/xml"))) {
- ApiUtil.setExampleResponse(request, "application/xml", " 123456789 123456789 123 2000-01-23T04:56:07.000Z aeiou true")
+ ApiUtil.setExampleResponse(request, "application/xml", "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n")
break
}
}
@@ -62,11 +62,11 @@ interface StoreApiDelegate {
getRequest().ifPresent { request ->
for (mediaType in MediaType.parseMediaTypes(request.getHeader("Accept"))) {
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
- ApiUtil.setExampleResponse(request, "application/json", "{ \"id\" : 0, \"petId\" : 6, \"quantity\" : 1, \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\", \"status\" : \"placed\", \"complete\" : false}")
+ ApiUtil.setExampleResponse(request, "application/json", "{\n \"id\" : 0,\n \"petId\" : 6,\n \"quantity\" : 1,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"status\" : \"placed\",\n \"complete\" : false\n}")
break
}
if (mediaType.isCompatibleWith(MediaType.valueOf("application/xml"))) {
- ApiUtil.setExampleResponse(request, "application/xml", " 123456789 123456789 123 2000-01-23T04:56:07.000Z aeiou true")
+ ApiUtil.setExampleResponse(request, "application/xml", "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n")
break
}
}
diff --git a/samples/server/petstore/kotlin-springboot-no-response-entity-delegate/src/main/kotlin/org/openapitools/api/UserApiDelegate.kt b/samples/server/petstore/kotlin-springboot-no-response-entity-delegate/src/main/kotlin/org/openapitools/api/UserApiDelegate.kt
index 074d4615b4f2..af1473e41257 100644
--- a/samples/server/petstore/kotlin-springboot-no-response-entity-delegate/src/main/kotlin/org/openapitools/api/UserApiDelegate.kt
+++ b/samples/server/petstore/kotlin-springboot-no-response-entity-delegate/src/main/kotlin/org/openapitools/api/UserApiDelegate.kt
@@ -59,11 +59,11 @@ interface UserApiDelegate {
getRequest().ifPresent { request ->
for (mediaType in MediaType.parseMediaTypes(request.getHeader("Accept"))) {
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
- ApiUtil.setExampleResponse(request, "application/json", "{ \"id\" : 0, \"username\" : \"username\", \"firstName\" : \"firstName\", \"lastName\" : \"lastName\", \"email\" : \"email\", \"password\" : \"password\", \"phone\" : \"phone\", \"userStatus\" : 6}")
+ ApiUtil.setExampleResponse(request, "application/json", "{\n \"id\" : 0,\n \"username\" : \"username\",\n \"firstName\" : \"firstName\",\n \"lastName\" : \"lastName\",\n \"email\" : \"email\",\n \"password\" : \"password\",\n \"phone\" : \"phone\",\n \"userStatus\" : 6\n}")
break
}
if (mediaType.isCompatibleWith(MediaType.valueOf("application/xml"))) {
- ApiUtil.setExampleResponse(request, "application/xml", " 123456789 aeiou aeiou aeiou aeiou aeiou aeiou 123")
+ ApiUtil.setExampleResponse(request, "application/xml", "\n 123456789\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n 123\n")
break
}
}
diff --git a/samples/server/petstore/kotlin-springboot-reactive-without-flow/src/main/kotlin/org/openapitools/api/PetApiController.kt b/samples/server/petstore/kotlin-springboot-reactive-without-flow/src/main/kotlin/org/openapitools/api/PetApiController.kt
index 165920c56390..8bd764e8d4b0 100644
--- a/samples/server/petstore/kotlin-springboot-reactive-without-flow/src/main/kotlin/org/openapitools/api/PetApiController.kt
+++ b/samples/server/petstore/kotlin-springboot-reactive-without-flow/src/main/kotlin/org/openapitools/api/PetApiController.kt
@@ -38,7 +38,7 @@ class PetApiController(@Autowired(required = true) val service: PetApiService) {
@Operation(
summary = "Add a new pet to the store",
operationId = "addPet",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = Pet::class))]),
ApiResponse(responseCode = "405", description = "Invalid input") ],
@@ -60,7 +60,7 @@ class PetApiController(@Autowired(required = true) val service: PetApiService) {
@Operation(
summary = "Deletes a pet",
operationId = "deletePet",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "400", description = "Invalid pet value") ],
security = [ SecurityRequirement(name = "petstore_auth", scopes = [ "write:pets", "read:pets" ]) ]
@@ -80,7 +80,7 @@ class PetApiController(@Autowired(required = true) val service: PetApiService) {
@Operation(
summary = "Finds Pets by status",
operationId = "findPetsByStatus",
- description = """Multiple status values can be provided with comma separated strings""",
+ description = "Multiple status values can be provided with comma separated strings",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(array = ArraySchema(schema = Schema(implementation = Pet::class)))]),
ApiResponse(responseCode = "400", description = "Invalid status value") ],
@@ -101,7 +101,7 @@ class PetApiController(@Autowired(required = true) val service: PetApiService) {
@Operation(
summary = "Finds Pets by tags",
operationId = "findPetsByTags",
- description = """Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.""",
+ description = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(array = ArraySchema(schema = Schema(implementation = Pet::class)))]),
ApiResponse(responseCode = "400", description = "Invalid tag value") ],
@@ -123,7 +123,7 @@ class PetApiController(@Autowired(required = true) val service: PetApiService) {
@Operation(
summary = "Find pet by ID",
operationId = "getPetById",
- description = """Returns a single pet""",
+ description = "Returns a single pet",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = Pet::class))]),
ApiResponse(responseCode = "400", description = "Invalid ID supplied"),
@@ -145,7 +145,7 @@ class PetApiController(@Autowired(required = true) val service: PetApiService) {
@Operation(
summary = "Update an existing pet",
operationId = "updatePet",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = Pet::class))]),
ApiResponse(responseCode = "400", description = "Invalid ID supplied"),
@@ -169,7 +169,7 @@ class PetApiController(@Autowired(required = true) val service: PetApiService) {
@Operation(
summary = "Updates a pet in the store with form data",
operationId = "updatePetWithForm",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "405", description = "Invalid input") ],
security = [ SecurityRequirement(name = "petstore_auth", scopes = [ "write:pets", "read:pets" ]) ]
@@ -191,7 +191,7 @@ class PetApiController(@Autowired(required = true) val service: PetApiService) {
@Operation(
summary = "uploads an image",
operationId = "uploadFile",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = ModelApiResponse::class))]) ],
security = [ SecurityRequirement(name = "petstore_auth", scopes = [ "write:pets", "read:pets" ]) ]
diff --git a/samples/server/petstore/kotlin-springboot-reactive-without-flow/src/main/kotlin/org/openapitools/api/StoreApiController.kt b/samples/server/petstore/kotlin-springboot-reactive-without-flow/src/main/kotlin/org/openapitools/api/StoreApiController.kt
index 03750f1b7577..0c596fed2cce 100644
--- a/samples/server/petstore/kotlin-springboot-reactive-without-flow/src/main/kotlin/org/openapitools/api/StoreApiController.kt
+++ b/samples/server/petstore/kotlin-springboot-reactive-without-flow/src/main/kotlin/org/openapitools/api/StoreApiController.kt
@@ -37,7 +37,7 @@ class StoreApiController(@Autowired(required = true) val service: StoreApiServic
@Operation(
summary = "Delete purchase order by ID",
operationId = "deleteOrder",
- description = """For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors""",
+ description = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors",
responses = [
ApiResponse(responseCode = "400", description = "Invalid ID supplied"),
ApiResponse(responseCode = "404", description = "Order not found") ]
@@ -56,7 +56,7 @@ class StoreApiController(@Autowired(required = true) val service: StoreApiServic
@Operation(
summary = "Returns pet inventories by status",
operationId = "getInventory",
- description = """Returns a map of status codes to quantities""",
+ description = "Returns a map of status codes to quantities",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = kotlin.collections.Map::class))]) ],
security = [ SecurityRequirement(name = "api_key") ]
@@ -74,7 +74,7 @@ class StoreApiController(@Autowired(required = true) val service: StoreApiServic
@Operation(
summary = "Find purchase order by ID",
operationId = "getOrderById",
- description = """For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions""",
+ description = "For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = Order::class))]),
ApiResponse(responseCode = "400", description = "Invalid ID supplied"),
@@ -95,7 +95,7 @@ class StoreApiController(@Autowired(required = true) val service: StoreApiServic
@Operation(
summary = "Place an order for a pet",
operationId = "placeOrder",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = Order::class))]),
ApiResponse(responseCode = "400", description = "Invalid Order") ]
diff --git a/samples/server/petstore/kotlin-springboot-reactive-without-flow/src/main/kotlin/org/openapitools/api/UserApiController.kt b/samples/server/petstore/kotlin-springboot-reactive-without-flow/src/main/kotlin/org/openapitools/api/UserApiController.kt
index d677e66a952f..01f57f0c846f 100644
--- a/samples/server/petstore/kotlin-springboot-reactive-without-flow/src/main/kotlin/org/openapitools/api/UserApiController.kt
+++ b/samples/server/petstore/kotlin-springboot-reactive-without-flow/src/main/kotlin/org/openapitools/api/UserApiController.kt
@@ -37,7 +37,7 @@ class UserApiController(@Autowired(required = true) val service: UserApiService)
@Operation(
summary = "Create user",
operationId = "createUser",
- description = """This can only be done by the logged in user.""",
+ description = "This can only be done by the logged in user.",
responses = [
ApiResponse(responseCode = "200", description = "successful operation") ],
security = [ SecurityRequirement(name = "api_key") ]
@@ -57,7 +57,7 @@ class UserApiController(@Autowired(required = true) val service: UserApiService)
@Operation(
summary = "Creates list of users with given input array",
operationId = "createUsersWithArrayInput",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation") ],
security = [ SecurityRequirement(name = "api_key") ]
@@ -77,7 +77,7 @@ class UserApiController(@Autowired(required = true) val service: UserApiService)
@Operation(
summary = "Creates list of users with given input array",
operationId = "createUsersWithListInput",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation") ],
security = [ SecurityRequirement(name = "api_key") ]
@@ -97,7 +97,7 @@ class UserApiController(@Autowired(required = true) val service: UserApiService)
@Operation(
summary = "Delete user",
operationId = "deleteUser",
- description = """This can only be done by the logged in user.""",
+ description = "This can only be done by the logged in user.",
responses = [
ApiResponse(responseCode = "400", description = "Invalid username supplied"),
ApiResponse(responseCode = "404", description = "User not found") ],
@@ -117,7 +117,7 @@ class UserApiController(@Autowired(required = true) val service: UserApiService)
@Operation(
summary = "Get user by user name",
operationId = "getUserByName",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = User::class))]),
ApiResponse(responseCode = "400", description = "Invalid username supplied"),
@@ -138,7 +138,7 @@ class UserApiController(@Autowired(required = true) val service: UserApiService)
@Operation(
summary = "Logs user into the system",
operationId = "loginUser",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = kotlin.String::class))]),
ApiResponse(responseCode = "400", description = "Invalid username/password supplied") ]
@@ -159,7 +159,7 @@ class UserApiController(@Autowired(required = true) val service: UserApiService)
@Operation(
summary = "Logs out current logged in user session",
operationId = "logoutUser",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation") ],
security = [ SecurityRequirement(name = "api_key") ]
@@ -176,7 +176,7 @@ class UserApiController(@Autowired(required = true) val service: UserApiService)
@Operation(
summary = "Updated user",
operationId = "updateUser",
- description = """This can only be done by the logged in user.""",
+ description = "This can only be done by the logged in user.",
responses = [
ApiResponse(responseCode = "400", description = "Invalid user supplied"),
ApiResponse(responseCode = "404", description = "User not found") ],
diff --git a/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/api/PetApiController.kt b/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/api/PetApiController.kt
index 682a15ef48e1..f8712cfdf691 100644
--- a/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/api/PetApiController.kt
+++ b/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/api/PetApiController.kt
@@ -38,7 +38,7 @@ class PetApiController(@Autowired(required = true) val service: PetApiService) {
@Operation(
summary = "Add a new pet to the store",
operationId = "addPet",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = Pet::class))]),
ApiResponse(responseCode = "405", description = "Invalid input") ],
@@ -60,7 +60,7 @@ class PetApiController(@Autowired(required = true) val service: PetApiService) {
@Operation(
summary = "Deletes a pet",
operationId = "deletePet",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "400", description = "Invalid pet value") ],
security = [ SecurityRequirement(name = "petstore_auth", scopes = [ "write:pets", "read:pets" ]) ]
@@ -80,7 +80,7 @@ class PetApiController(@Autowired(required = true) val service: PetApiService) {
@Operation(
summary = "Finds Pets by status",
operationId = "findPetsByStatus",
- description = """Multiple status values can be provided with comma separated strings""",
+ description = "Multiple status values can be provided with comma separated strings",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(array = ArraySchema(schema = Schema(implementation = Pet::class)))]),
ApiResponse(responseCode = "400", description = "Invalid status value") ],
@@ -101,7 +101,7 @@ class PetApiController(@Autowired(required = true) val service: PetApiService) {
@Operation(
summary = "Finds Pets by tags",
operationId = "findPetsByTags",
- description = """Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.""",
+ description = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(array = ArraySchema(schema = Schema(implementation = Pet::class)))]),
ApiResponse(responseCode = "400", description = "Invalid tag value") ],
@@ -123,7 +123,7 @@ class PetApiController(@Autowired(required = true) val service: PetApiService) {
@Operation(
summary = "Find pet by ID",
operationId = "getPetById",
- description = """Returns a single pet""",
+ description = "Returns a single pet",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = Pet::class))]),
ApiResponse(responseCode = "400", description = "Invalid ID supplied"),
@@ -145,7 +145,7 @@ class PetApiController(@Autowired(required = true) val service: PetApiService) {
@Operation(
summary = "Update an existing pet",
operationId = "updatePet",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = Pet::class))]),
ApiResponse(responseCode = "400", description = "Invalid ID supplied"),
@@ -169,7 +169,7 @@ class PetApiController(@Autowired(required = true) val service: PetApiService) {
@Operation(
summary = "Updates a pet in the store with form data",
operationId = "updatePetWithForm",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "405", description = "Invalid input") ],
security = [ SecurityRequirement(name = "petstore_auth", scopes = [ "write:pets", "read:pets" ]) ]
@@ -191,7 +191,7 @@ class PetApiController(@Autowired(required = true) val service: PetApiService) {
@Operation(
summary = "uploads an image",
operationId = "uploadFile",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = ModelApiResponse::class))]) ],
security = [ SecurityRequirement(name = "petstore_auth", scopes = [ "write:pets", "read:pets" ]) ]
diff --git a/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/api/StoreApiController.kt b/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/api/StoreApiController.kt
index 03750f1b7577..0c596fed2cce 100644
--- a/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/api/StoreApiController.kt
+++ b/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/api/StoreApiController.kt
@@ -37,7 +37,7 @@ class StoreApiController(@Autowired(required = true) val service: StoreApiServic
@Operation(
summary = "Delete purchase order by ID",
operationId = "deleteOrder",
- description = """For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors""",
+ description = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors",
responses = [
ApiResponse(responseCode = "400", description = "Invalid ID supplied"),
ApiResponse(responseCode = "404", description = "Order not found") ]
@@ -56,7 +56,7 @@ class StoreApiController(@Autowired(required = true) val service: StoreApiServic
@Operation(
summary = "Returns pet inventories by status",
operationId = "getInventory",
- description = """Returns a map of status codes to quantities""",
+ description = "Returns a map of status codes to quantities",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = kotlin.collections.Map::class))]) ],
security = [ SecurityRequirement(name = "api_key") ]
@@ -74,7 +74,7 @@ class StoreApiController(@Autowired(required = true) val service: StoreApiServic
@Operation(
summary = "Find purchase order by ID",
operationId = "getOrderById",
- description = """For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions""",
+ description = "For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = Order::class))]),
ApiResponse(responseCode = "400", description = "Invalid ID supplied"),
@@ -95,7 +95,7 @@ class StoreApiController(@Autowired(required = true) val service: StoreApiServic
@Operation(
summary = "Place an order for a pet",
operationId = "placeOrder",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = Order::class))]),
ApiResponse(responseCode = "400", description = "Invalid Order") ]
diff --git a/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/api/UserApiController.kt b/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/api/UserApiController.kt
index d677e66a952f..01f57f0c846f 100644
--- a/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/api/UserApiController.kt
+++ b/samples/server/petstore/kotlin-springboot-reactive/src/main/kotlin/org/openapitools/api/UserApiController.kt
@@ -37,7 +37,7 @@ class UserApiController(@Autowired(required = true) val service: UserApiService)
@Operation(
summary = "Create user",
operationId = "createUser",
- description = """This can only be done by the logged in user.""",
+ description = "This can only be done by the logged in user.",
responses = [
ApiResponse(responseCode = "200", description = "successful operation") ],
security = [ SecurityRequirement(name = "api_key") ]
@@ -57,7 +57,7 @@ class UserApiController(@Autowired(required = true) val service: UserApiService)
@Operation(
summary = "Creates list of users with given input array",
operationId = "createUsersWithArrayInput",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation") ],
security = [ SecurityRequirement(name = "api_key") ]
@@ -77,7 +77,7 @@ class UserApiController(@Autowired(required = true) val service: UserApiService)
@Operation(
summary = "Creates list of users with given input array",
operationId = "createUsersWithListInput",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation") ],
security = [ SecurityRequirement(name = "api_key") ]
@@ -97,7 +97,7 @@ class UserApiController(@Autowired(required = true) val service: UserApiService)
@Operation(
summary = "Delete user",
operationId = "deleteUser",
- description = """This can only be done by the logged in user.""",
+ description = "This can only be done by the logged in user.",
responses = [
ApiResponse(responseCode = "400", description = "Invalid username supplied"),
ApiResponse(responseCode = "404", description = "User not found") ],
@@ -117,7 +117,7 @@ class UserApiController(@Autowired(required = true) val service: UserApiService)
@Operation(
summary = "Get user by user name",
operationId = "getUserByName",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = User::class))]),
ApiResponse(responseCode = "400", description = "Invalid username supplied"),
@@ -138,7 +138,7 @@ class UserApiController(@Autowired(required = true) val service: UserApiService)
@Operation(
summary = "Logs user into the system",
operationId = "loginUser",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = kotlin.String::class))]),
ApiResponse(responseCode = "400", description = "Invalid username/password supplied") ]
@@ -159,7 +159,7 @@ class UserApiController(@Autowired(required = true) val service: UserApiService)
@Operation(
summary = "Logs out current logged in user session",
operationId = "logoutUser",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation") ],
security = [ SecurityRequirement(name = "api_key") ]
@@ -176,7 +176,7 @@ class UserApiController(@Autowired(required = true) val service: UserApiService)
@Operation(
summary = "Updated user",
operationId = "updateUser",
- description = """This can only be done by the logged in user.""",
+ description = "This can only be done by the logged in user.",
responses = [
ApiResponse(responseCode = "400", description = "Invalid user supplied"),
ApiResponse(responseCode = "404", description = "User not found") ],
diff --git a/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/api/FakeApi.kt b/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/api/FakeApi.kt
index 6ec48e1d90d1..42ef9a76e87c 100644
--- a/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/api/FakeApi.kt
+++ b/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/api/FakeApi.kt
@@ -41,7 +41,7 @@ interface FakeApi {
tags = ["fake",],
summary = "",
operationId = "fakeCookieSuggestion",
- description = """Test list of objects with additional values matching data from cookie""",
+ description = "Test list of objects with additional values matching data from cookie",
responses = [
ApiResponse(responseCode = "200", description = "List of pets resolved from suggestion", content = [Content(array = ArraySchema(schema = Schema(implementation = Pet::class)))])
]
diff --git a/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/api/FakeClassnameTestApi.kt b/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/api/FakeClassnameTestApi.kt
index 2fd6e7979e86..9c4ac1abcf9f 100644
--- a/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/api/FakeClassnameTestApi.kt
+++ b/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/api/FakeClassnameTestApi.kt
@@ -41,7 +41,7 @@ interface FakeClassnameTestApi {
tags = ["fake_classname_tags 123#$%^",],
summary = "To test class name in snake case",
operationId = "testClassname",
- description = """To test class name in snake case""",
+ description = "To test class name in snake case",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = Client::class))])
],
diff --git a/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/api/FooApi.kt b/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/api/FooApi.kt
index 046330cea458..46970fcea1c8 100644
--- a/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/api/FooApi.kt
+++ b/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/api/FooApi.kt
@@ -41,7 +41,7 @@ interface FooApi {
tags = ["default",],
summary = "",
operationId = "fooGet",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "response", content = [Content(schema = Schema(implementation = FooGetDefaultResponse::class))])
]
diff --git a/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/api/PetApi.kt b/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/api/PetApi.kt
index c3e04cd1340b..77dbfead5557 100644
--- a/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/api/PetApi.kt
+++ b/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/api/PetApi.kt
@@ -42,7 +42,7 @@ interface PetApi {
tags = ["pet",],
summary = "Add a new pet to the store",
operationId = "addPet",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "Successful operation"),
ApiResponse(responseCode = "405", description = "Invalid input")
@@ -65,7 +65,7 @@ interface PetApi {
tags = ["pet",],
summary = "Deletes a pet",
operationId = "deletePet",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "Successful operation"),
ApiResponse(responseCode = "400", description = "Invalid pet value")
@@ -88,7 +88,7 @@ interface PetApi {
tags = ["pet",],
summary = "Finds Pets by status",
operationId = "findPetsByStatus",
- description = """Multiple status values can be provided with comma separated strings""",
+ description = "Multiple status values can be provided with comma separated strings",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(array = ArraySchema(schema = Schema(implementation = Pet::class)))]),
ApiResponse(responseCode = "400", description = "Invalid status value")
@@ -111,7 +111,7 @@ interface PetApi {
tags = ["pet",],
summary = "Finds Pets by tags",
operationId = "findPetsByTags",
- description = """Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.""",
+ description = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(array = ArraySchema(schema = Schema(implementation = Pet::class)))]),
ApiResponse(responseCode = "400", description = "Invalid tag value")
@@ -135,7 +135,7 @@ interface PetApi {
tags = ["pet",],
summary = "Find pet by ID",
operationId = "getPetById",
- description = """Returns a single pet""",
+ description = "Returns a single pet",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = Pet::class))]),
ApiResponse(responseCode = "400", description = "Invalid ID supplied"),
@@ -159,7 +159,7 @@ interface PetApi {
tags = ["pet",],
summary = "Update an existing pet",
operationId = "updatePet",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "Successful operation"),
ApiResponse(responseCode = "400", description = "Invalid ID supplied"),
@@ -184,7 +184,7 @@ interface PetApi {
tags = ["pet",],
summary = "Updates a pet in the store with form data",
operationId = "updatePetWithForm",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "Successful operation"),
ApiResponse(responseCode = "405", description = "Invalid input")
@@ -209,7 +209,7 @@ interface PetApi {
tags = ["pet",],
summary = "uploads an image",
operationId = "uploadFile",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = ModelApiResponse::class))])
],
diff --git a/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/api/StoreApi.kt b/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/api/StoreApi.kt
index 4340b902bec2..6ec453f9abc5 100644
--- a/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/api/StoreApi.kt
+++ b/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/api/StoreApi.kt
@@ -41,7 +41,7 @@ interface StoreApi {
tags = ["store",],
summary = "Delete purchase order by ID",
operationId = "deleteOrder",
- description = """For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors""",
+ description = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors",
responses = [
ApiResponse(responseCode = "400", description = "Invalid ID supplied"),
ApiResponse(responseCode = "404", description = "Order not found")
@@ -62,7 +62,7 @@ interface StoreApi {
tags = ["store",],
summary = "Returns pet inventories by status",
operationId = "getInventory",
- description = """Returns a map of status codes to quantities""",
+ description = "Returns a map of status codes to quantities",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = kotlin.collections.Map::class))])
],
@@ -82,7 +82,7 @@ interface StoreApi {
tags = ["store",],
summary = "Find purchase order by ID",
operationId = "getOrderById",
- description = """For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions""",
+ description = "For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = Order::class))]),
ApiResponse(responseCode = "400", description = "Invalid ID supplied"),
@@ -105,7 +105,7 @@ interface StoreApi {
tags = ["store",],
summary = "Place an order for a pet",
operationId = "placeOrder",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = Order::class))]),
ApiResponse(responseCode = "400", description = "Invalid Order")
diff --git a/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/api/UserApi.kt b/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/api/UserApi.kt
index 37506ccbab0d..e2440658d353 100644
--- a/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/api/UserApi.kt
+++ b/samples/server/petstore/kotlin-springboot-request-cookie/src/main/kotlin/org/openapitools/api/UserApi.kt
@@ -41,7 +41,7 @@ interface UserApi {
tags = ["user",],
summary = "Create user",
operationId = "createUser",
- description = """This can only be done by the logged in user.""",
+ description = "This can only be done by the logged in user.",
responses = [
ApiResponse(responseCode = "200", description = "successful operation")
]
@@ -62,7 +62,7 @@ interface UserApi {
tags = ["user",],
summary = "Creates list of users with given input array",
operationId = "createUsersWithArrayInput",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation")
]
@@ -83,7 +83,7 @@ interface UserApi {
tags = ["user",],
summary = "Creates list of users with given input array",
operationId = "createUsersWithListInput",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation")
]
@@ -104,7 +104,7 @@ interface UserApi {
tags = ["user",],
summary = "Delete user",
operationId = "deleteUser",
- description = """This can only be done by the logged in user.""",
+ description = "This can only be done by the logged in user.",
responses = [
ApiResponse(responseCode = "400", description = "Invalid username supplied"),
ApiResponse(responseCode = "404", description = "User not found")
@@ -125,7 +125,7 @@ interface UserApi {
tags = ["user",],
summary = "Get user by user name",
operationId = "getUserByName",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = User::class))]),
ApiResponse(responseCode = "400", description = "Invalid username supplied"),
@@ -148,7 +148,7 @@ interface UserApi {
tags = ["user",],
summary = "Logs user into the system",
operationId = "loginUser",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = kotlin.String::class))]),
ApiResponse(responseCode = "400", description = "Invalid username/password supplied")
@@ -171,7 +171,7 @@ interface UserApi {
tags = ["user",],
summary = "Logs out current logged in user session",
operationId = "logoutUser",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation")
]
@@ -189,7 +189,7 @@ interface UserApi {
tags = ["user",],
summary = "Updated user",
operationId = "updateUser",
- description = """This can only be done by the logged in user.""",
+ description = "This can only be done by the logged in user.",
responses = [
ApiResponse(responseCode = "400", description = "Invalid user supplied"),
ApiResponse(responseCode = "404", description = "User not found")
diff --git a/samples/server/petstore/kotlin-springboot-source-swagger2/src/main/kotlin/org/openapitools/api/PetApiController.kt b/samples/server/petstore/kotlin-springboot-source-swagger2/src/main/kotlin/org/openapitools/api/PetApiController.kt
index 98c84939c6dd..2def93621468 100644
--- a/samples/server/petstore/kotlin-springboot-source-swagger2/src/main/kotlin/org/openapitools/api/PetApiController.kt
+++ b/samples/server/petstore/kotlin-springboot-source-swagger2/src/main/kotlin/org/openapitools/api/PetApiController.kt
@@ -37,7 +37,7 @@ class PetApiController(@Autowired(required = true) val service: PetApiService) {
@Operation(
summary = "Add a new pet to the store",
operationId = "addPet",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "405", description = "Invalid input") ],
security = [ SecurityRequirement(name = "petstore_auth", scopes = [ "write:pets", "read:pets" ]) ]
@@ -57,7 +57,7 @@ class PetApiController(@Autowired(required = true) val service: PetApiService) {
@Operation(
summary = "Deletes a pet",
operationId = "deletePet",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "400", description = "Invalid pet value") ],
security = [ SecurityRequirement(name = "petstore_auth", scopes = [ "write:pets", "read:pets" ]) ]
@@ -79,7 +79,7 @@ class PetApiController(@Autowired(required = true) val service: PetApiService) {
@Operation(
summary = "Finds Pets by status",
operationId = "findPetsByStatus",
- description = """Multiple status values can be provided with comma separated strings""",
+ description = "Multiple status values can be provided with comma separated strings",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(array = ArraySchema(schema = Schema(implementation = Pet::class)))]),
ApiResponse(responseCode = "400", description = "Invalid status value") ],
@@ -100,7 +100,7 @@ class PetApiController(@Autowired(required = true) val service: PetApiService) {
@Operation(
summary = "Finds Pets by tags",
operationId = "findPetsByTags",
- description = """Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.""",
+ description = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(array = ArraySchema(schema = Schema(implementation = Pet::class)))]),
ApiResponse(responseCode = "400", description = "Invalid tag value") ],
@@ -122,7 +122,7 @@ class PetApiController(@Autowired(required = true) val service: PetApiService) {
@Operation(
summary = "Find pet by ID",
operationId = "getPetById",
- description = """Returns a single pet""",
+ description = "Returns a single pet",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = Pet::class))]),
ApiResponse(responseCode = "400", description = "Invalid ID supplied"),
@@ -144,7 +144,7 @@ class PetApiController(@Autowired(required = true) val service: PetApiService) {
@Operation(
summary = "Update an existing pet",
operationId = "updatePet",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "400", description = "Invalid ID supplied"),
ApiResponse(responseCode = "404", description = "Pet not found"),
@@ -166,7 +166,7 @@ class PetApiController(@Autowired(required = true) val service: PetApiService) {
@Operation(
summary = "Updates a pet in the store with form data",
operationId = "updatePetWithForm",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "405", description = "Invalid input") ],
security = [ SecurityRequirement(name = "petstore_auth", scopes = [ "write:pets", "read:pets" ]) ]
@@ -188,7 +188,7 @@ class PetApiController(@Autowired(required = true) val service: PetApiService) {
@Operation(
summary = "uploads an image",
operationId = "uploadFile",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = ModelApiResponse::class))]) ],
security = [ SecurityRequirement(name = "petstore_auth", scopes = [ "write:pets", "read:pets" ]) ]
diff --git a/samples/server/petstore/kotlin-springboot-source-swagger2/src/main/kotlin/org/openapitools/api/StoreApiController.kt b/samples/server/petstore/kotlin-springboot-source-swagger2/src/main/kotlin/org/openapitools/api/StoreApiController.kt
index 1884db667f9c..ad4105a5eb68 100644
--- a/samples/server/petstore/kotlin-springboot-source-swagger2/src/main/kotlin/org/openapitools/api/StoreApiController.kt
+++ b/samples/server/petstore/kotlin-springboot-source-swagger2/src/main/kotlin/org/openapitools/api/StoreApiController.kt
@@ -36,7 +36,7 @@ class StoreApiController(@Autowired(required = true) val service: StoreApiServic
@Operation(
summary = "Delete purchase order by ID",
operationId = "deleteOrder",
- description = """For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors""",
+ description = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors",
responses = [
ApiResponse(responseCode = "400", description = "Invalid ID supplied"),
ApiResponse(responseCode = "404", description = "Order not found") ]
@@ -55,7 +55,7 @@ class StoreApiController(@Autowired(required = true) val service: StoreApiServic
@Operation(
summary = "Returns pet inventories by status",
operationId = "getInventory",
- description = """Returns a map of status codes to quantities""",
+ description = "Returns a map of status codes to quantities",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = kotlin.collections.Map::class))]) ],
security = [ SecurityRequirement(name = "api_key") ]
@@ -73,7 +73,7 @@ class StoreApiController(@Autowired(required = true) val service: StoreApiServic
@Operation(
summary = "Find purchase order by ID",
operationId = "getOrderById",
- description = """For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions""",
+ description = "For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = Order::class))]),
ApiResponse(responseCode = "400", description = "Invalid ID supplied"),
@@ -94,7 +94,7 @@ class StoreApiController(@Autowired(required = true) val service: StoreApiServic
@Operation(
summary = "Place an order for a pet",
operationId = "placeOrder",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = Order::class))]),
ApiResponse(responseCode = "400", description = "Invalid Order") ]
diff --git a/samples/server/petstore/kotlin-springboot-source-swagger2/src/main/kotlin/org/openapitools/api/UserApiController.kt b/samples/server/petstore/kotlin-springboot-source-swagger2/src/main/kotlin/org/openapitools/api/UserApiController.kt
index 7dd168a5cf20..98aa7380089a 100644
--- a/samples/server/petstore/kotlin-springboot-source-swagger2/src/main/kotlin/org/openapitools/api/UserApiController.kt
+++ b/samples/server/petstore/kotlin-springboot-source-swagger2/src/main/kotlin/org/openapitools/api/UserApiController.kt
@@ -36,7 +36,7 @@ class UserApiController(@Autowired(required = true) val service: UserApiService)
@Operation(
summary = "Create user",
operationId = "createUser",
- description = """This can only be done by the logged in user.""",
+ description = "This can only be done by the logged in user.",
responses = [
ApiResponse(responseCode = "200", description = "successful operation") ]
)
@@ -54,7 +54,7 @@ class UserApiController(@Autowired(required = true) val service: UserApiService)
@Operation(
summary = "Creates list of users with given input array",
operationId = "createUsersWithArrayInput",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation") ]
)
@@ -72,7 +72,7 @@ class UserApiController(@Autowired(required = true) val service: UserApiService)
@Operation(
summary = "Creates list of users with given input array",
operationId = "createUsersWithListInput",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation") ]
)
@@ -90,7 +90,7 @@ class UserApiController(@Autowired(required = true) val service: UserApiService)
@Operation(
summary = "Delete user",
operationId = "deleteUser",
- description = """This can only be done by the logged in user.""",
+ description = "This can only be done by the logged in user.",
responses = [
ApiResponse(responseCode = "400", description = "Invalid username supplied"),
ApiResponse(responseCode = "404", description = "User not found") ]
@@ -109,7 +109,7 @@ class UserApiController(@Autowired(required = true) val service: UserApiService)
@Operation(
summary = "Get user by user name",
operationId = "getUserByName",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = User::class))]),
ApiResponse(responseCode = "400", description = "Invalid username supplied"),
@@ -130,7 +130,7 @@ class UserApiController(@Autowired(required = true) val service: UserApiService)
@Operation(
summary = "Logs user into the system",
operationId = "loginUser",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation", content = [Content(schema = Schema(implementation = kotlin.String::class))]),
ApiResponse(responseCode = "400", description = "Invalid username/password supplied") ]
@@ -151,7 +151,7 @@ class UserApiController(@Autowired(required = true) val service: UserApiService)
@Operation(
summary = "Logs out current logged in user session",
operationId = "logoutUser",
- description = """""",
+ description = "",
responses = [
ApiResponse(responseCode = "200", description = "successful operation") ]
)
@@ -167,7 +167,7 @@ class UserApiController(@Autowired(required = true) val service: UserApiService)
@Operation(
summary = "Updated user",
operationId = "updateUser",
- description = """This can only be done by the logged in user.""",
+ description = "This can only be done by the logged in user.",
responses = [
ApiResponse(responseCode = "400", description = "Invalid user supplied"),
ApiResponse(responseCode = "404", description = "User not found") ]