mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-06-29 04:00:51 +00:00
[Kotlin]Formatted according to the kotlin style guide (#5196)
* Do not put a space https://kotlinlang.org/docs/reference/coding-conventions.html#horizontal-whitespace * Use 4 spaces for indentation https://kotlinlang.org/docs/reference/coding-conventions.html#formatting * Put spaces around the `=` sign https://kotlinlang.org/docs/reference/coding-conventions.html#method-call-formatting * Indent the expression body by 4 spaces https://kotlinlang.org/docs/reference/coding-conventions.html#expression-body-formatting * run ./bin/kotlin-springboot-petstore-all.sh
This commit is contained in:
parent
7d366ad6ac
commit
a6807a73e5
@ -5,7 +5,7 @@
|
|||||||
{{/vars}}
|
{{/vars}}
|
||||||
*/{{#discriminator}}
|
*/{{#discriminator}}
|
||||||
{{>typeInfoAnnotation}}{{/discriminator}}
|
{{>typeInfoAnnotation}}{{/discriminator}}
|
||||||
{{#discriminator}}interface {{classname}}{{/discriminator}}{{^discriminator}}data class {{classname}} (
|
{{#discriminator}}interface {{classname}}{{/discriminator}}{{^discriminator}}data class {{classname}}(
|
||||||
{{#requiredVars}}
|
{{#requiredVars}}
|
||||||
{{>dataClassReqVar}}{{^-last}},
|
{{>dataClassReqVar}}{{^-last}},
|
||||||
{{/-last}}{{/requiredVars}}{{#hasRequired}}{{#hasOptional}},
|
{{/-last}}{{/requiredVars}}{{#hasRequired}}{{#hasOptional}},
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{{#useBeanValidation}}{{#required}}
|
{{#useBeanValidation}}{{#required}}
|
||||||
{{^isReadOnly}}@get:NotNull{{/isReadOnly}} {{/required}}{{>beanValidationModel}}{{/useBeanValidation}}{{#swaggerAnnotations}}
|
{{^isReadOnly}}@get:NotNull{{/isReadOnly}} {{/required}}{{>beanValidationModel}}{{/useBeanValidation}}{{#swaggerAnnotations}}
|
||||||
@ApiModelProperty({{#example}}example = "{{{example}}}", {{/example}}{{#required}}required = {{required}}, {{/required}}{{#isReadOnly}}readOnly = {{{isReadOnly}}}, {{/isReadOnly}}value = "{{{description}}}"){{/swaggerAnnotations}}{{#deprecated}}
|
@ApiModelProperty({{#example}}example = "{{{example}}}", {{/example}}{{#required}}required = {{required}}, {{/required}}{{#isReadOnly}}readOnly = {{{isReadOnly}}}, {{/isReadOnly}}value = "{{{description}}}"){{/swaggerAnnotations}}{{#deprecated}}
|
||||||
@Deprecated(message=""){{/deprecated}}
|
@Deprecated(message = ""){{/deprecated}}
|
||||||
@JsonProperty("{{{baseName}}}"){{#isInherited}} override{{/isInherited}} {{>modelMutable}} {{{name}}}: {{#isEnum}}{{#isListContainer}}{{baseType}}<{{/isListContainer}}{{classname}}.{{nameInCamelCase}}{{#isListContainer}}>{{/isListContainer}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{/isEnum}}? = {{#defaultvalue}}{{defaultvalue}}{{/defaultvalue}}{{^defaultvalue}}null{{/defaultvalue}}
|
@JsonProperty("{{{baseName}}}"){{#isInherited}} override{{/isInherited}} {{>modelMutable}} {{{name}}}: {{#isEnum}}{{#isListContainer}}{{baseType}}<{{/isListContainer}}{{classname}}.{{nameInCamelCase}}{{#isListContainer}}>{{/isListContainer}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{/isEnum}}? = {{#defaultvalue}}{{defaultvalue}}{{/defaultvalue}}{{^defaultvalue}}null{{/defaultvalue}}
|
@ -1,4 +1,4 @@
|
|||||||
{{#useBeanValidation}}{{#required}}
|
{{#useBeanValidation}}{{#required}}
|
||||||
{{^isReadOnly}}@get:NotNull{{/isReadOnly}} {{/required}}{{>beanValidationModel}}{{/useBeanValidation}}{{#swaggerAnnotations}}
|
{{^isReadOnly}}@get:NotNull{{/isReadOnly}} {{/required}}{{>beanValidationModel}}{{/useBeanValidation}}{{#swaggerAnnotations}}
|
||||||
@ApiModelProperty({{#example}}example = "{{{example}}}", {{/example}}{{#required}}required = {{required}}, {{/required}}{{#isReadOnly}}readOnly = {{{isReadOnly}}}, {{/isReadOnly}}value = "{{{description}}}"){{/swaggerAnnotations}}
|
@ApiModelProperty({{#example}}example = "{{{example}}}", {{/example}}{{#required}}required = {{required}}, {{/required}}{{#isReadOnly}}readOnly = {{{isReadOnly}}}, {{/isReadOnly}}value = "{{{description}}}"){{/swaggerAnnotations}}
|
||||||
@JsonProperty("{{{baseName}}}"){{#isInherited}} override{{/isInherited}} {{>modelMutable}} {{{name}}}: {{#isEnum}}{{#isListContainer}}{{baseType}}<{{/isListContainer}}{{classname}}.{{nameInCamelCase}}{{#isListContainer}}>{{/isListContainer}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{/isEnum}}{{#isReadOnly}}? = {{#defaultvalue}}{{defaultvalue}}{{/defaultvalue}}{{^defaultvalue}}null{{/defaultvalue}}{{/isReadOnly}}
|
@JsonProperty("{{{baseName}}}"){{#isInherited}} override{{/isInherited}} {{>modelMutable}} {{{name}}}: {{#isEnum}}{{#isListContainer}}{{baseType}}<{{/isListContainer}}{{classname}}.{{nameInCamelCase}}{{#isListContainer}}>{{/isListContainer}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{/isEnum}}{{#isReadOnly}}? = {{#defaultvalue}}{{defaultvalue}}{{/defaultvalue}}{{^defaultvalue}}null{{/defaultvalue}}{{/isReadOnly}}
|
@ -17,13 +17,13 @@ class DefaultExceptionHandler {
|
|||||||
|
|
||||||
@ExceptionHandler(value = [ApiException::class])
|
@ExceptionHandler(value = [ApiException::class])
|
||||||
fun onApiException(ex: ApiException, response: HttpServletResponse): Unit =
|
fun onApiException(ex: ApiException, response: HttpServletResponse): Unit =
|
||||||
response.sendError(ex.code, ex.message)
|
response.sendError(ex.code, ex.message)
|
||||||
|
|
||||||
@ExceptionHandler(value = [NotImplementedError::class])
|
@ExceptionHandler(value = [NotImplementedError::class])
|
||||||
fun onNotImplemented(ex: NotImplementedError, response: HttpServletResponse): Unit =
|
fun onNotImplemented(ex: NotImplementedError, response: HttpServletResponse): Unit =
|
||||||
response.sendError(HttpStatus.NOT_IMPLEMENTED.value())
|
response.sendError(HttpStatus.NOT_IMPLEMENTED.value())
|
||||||
|
|
||||||
@ExceptionHandler(value = [ConstraintViolationException::class])
|
@ExceptionHandler(value = [ConstraintViolationException::class])
|
||||||
fun onConstraintViolation(ex: ConstraintViolationException, response: HttpServletResponse): Unit =
|
fun onConstraintViolation(ex: ConstraintViolationException, response: HttpServletResponse): Unit =
|
||||||
response.sendError(HttpStatus.BAD_REQUEST.value(), ex.constraintViolations.joinToString(", ") { it.message })
|
response.sendError(HttpStatus.BAD_REQUEST.value(), ex.constraintViolations.joinToString(", ") { it.message })
|
||||||
}
|
}
|
||||||
|
@ -1 +1 @@
|
|||||||
4.2.2-SNAPSHOT
|
4.3.0-SNAPSHOT
|
@ -16,13 +16,13 @@ import io.swagger.annotations.ApiModelProperty
|
|||||||
* @param id
|
* @param id
|
||||||
* @param name
|
* @param name
|
||||||
*/
|
*/
|
||||||
data class Category (
|
data class Category(
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("id") val id: kotlin.Long? = null,
|
@JsonProperty("id") val id: kotlin.Long? = null,
|
||||||
@get:Pattern(regexp="^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$")
|
@get:Pattern(regexp="^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$")
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("name") val name: kotlin.String? = null
|
@JsonProperty("name") val name: kotlin.String? = null
|
||||||
) {
|
) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -16,13 +16,13 @@ import io.swagger.annotations.ApiModelProperty
|
|||||||
* @param name Updated name of the pet
|
* @param name Updated name of the pet
|
||||||
* @param status Updated status of the pet
|
* @param status Updated status of the pet
|
||||||
*/
|
*/
|
||||||
data class InlineObject (
|
data class InlineObject(
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "Updated name of the pet")
|
@ApiModelProperty(example = "null", value = "Updated name of the pet")
|
||||||
@JsonProperty("name") val name: kotlin.String? = null,
|
@JsonProperty("name") val name: kotlin.String? = null,
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "Updated status of the pet")
|
@ApiModelProperty(example = "null", value = "Updated status of the pet")
|
||||||
@JsonProperty("status") val status: kotlin.String? = null
|
@JsonProperty("status") val status: kotlin.String? = null
|
||||||
) {
|
) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -16,13 +16,13 @@ import io.swagger.annotations.ApiModelProperty
|
|||||||
* @param additionalMetadata Additional data to pass to server
|
* @param additionalMetadata Additional data to pass to server
|
||||||
* @param file file to upload
|
* @param file file to upload
|
||||||
*/
|
*/
|
||||||
data class InlineObject1 (
|
data class InlineObject1(
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "Additional data to pass to server")
|
@ApiModelProperty(example = "null", value = "Additional data to pass to server")
|
||||||
@JsonProperty("additionalMetadata") val additionalMetadata: kotlin.String? = null,
|
@JsonProperty("additionalMetadata") val additionalMetadata: kotlin.String? = null,
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "file to upload")
|
@ApiModelProperty(example = "null", value = "file to upload")
|
||||||
@JsonProperty("file") val file: org.springframework.core.io.Resource? = null
|
@JsonProperty("file") val file: org.springframework.core.io.Resource? = null
|
||||||
) {
|
) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -17,16 +17,16 @@ import io.swagger.annotations.ApiModelProperty
|
|||||||
* @param type
|
* @param type
|
||||||
* @param message
|
* @param message
|
||||||
*/
|
*/
|
||||||
data class ModelApiResponse (
|
data class ModelApiResponse(
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("code") val code: kotlin.Int? = null,
|
@JsonProperty("code") val code: kotlin.Int? = null,
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("type") val type: kotlin.String? = null,
|
@JsonProperty("type") val type: kotlin.String? = null,
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("message") val message: kotlin.String? = null
|
@JsonProperty("message") val message: kotlin.String? = null
|
||||||
) {
|
) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -21,25 +21,25 @@ import io.swagger.annotations.ApiModelProperty
|
|||||||
* @param status Order Status
|
* @param status Order Status
|
||||||
* @param complete
|
* @param complete
|
||||||
*/
|
*/
|
||||||
data class Order (
|
data class Order(
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("id") val id: kotlin.Long? = null,
|
@JsonProperty("id") val id: kotlin.Long? = null,
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("petId") val petId: kotlin.Long? = null,
|
@JsonProperty("petId") val petId: kotlin.Long? = null,
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("quantity") val quantity: kotlin.Int? = null,
|
@JsonProperty("quantity") val quantity: kotlin.Int? = null,
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("shipDate") val shipDate: java.time.OffsetDateTime? = null,
|
@JsonProperty("shipDate") val shipDate: java.time.OffsetDateTime? = null,
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "Order Status")
|
@ApiModelProperty(example = "null", value = "Order Status")
|
||||||
@JsonProperty("status") val status: Order.Status? = null,
|
@JsonProperty("status") val status: Order.Status? = null,
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("complete") val complete: kotlin.Boolean? = null
|
@JsonProperty("complete") val complete: kotlin.Boolean? = null
|
||||||
) {
|
) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -16,34 +16,34 @@ import io.swagger.annotations.ApiModelProperty
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* A pet for sale in the pet store
|
* A pet for sale in the pet store
|
||||||
* @param id
|
|
||||||
* @param category
|
|
||||||
* @param name
|
* @param name
|
||||||
* @param photoUrls
|
* @param photoUrls
|
||||||
|
* @param id
|
||||||
|
* @param category
|
||||||
* @param tags
|
* @param tags
|
||||||
* @param status pet status in the store
|
* @param status pet status in the store
|
||||||
*/
|
*/
|
||||||
data class Pet (
|
data class Pet(
|
||||||
|
|
||||||
@get:NotNull
|
@get:NotNull
|
||||||
@ApiModelProperty(example = "doggie", required = true, value = "")
|
@ApiModelProperty(example = "doggie", required = true, value = "")
|
||||||
@JsonProperty("name") val name: kotlin.String,
|
@JsonProperty("name") val name: kotlin.String,
|
||||||
|
|
||||||
@get:NotNull
|
@get:NotNull
|
||||||
@ApiModelProperty(example = "null", required = true, value = "")
|
@ApiModelProperty(example = "null", required = true, value = "")
|
||||||
@JsonProperty("photoUrls") val photoUrls: kotlin.collections.List<kotlin.String>,
|
@JsonProperty("photoUrls") val photoUrls: kotlin.collections.List<kotlin.String>,
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("id") val id: kotlin.Long? = null,
|
@JsonProperty("id") val id: kotlin.Long? = null,
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("category") val category: Category? = null,
|
@JsonProperty("category") val category: Category? = null,
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("tags") val tags: kotlin.collections.List<Tag>? = null,
|
@JsonProperty("tags") val tags: kotlin.collections.List<Tag>? = null,
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "pet status in the store")
|
@ApiModelProperty(example = "null", value = "pet status in the store")
|
||||||
@JsonProperty("status") val status: Pet.Status? = null
|
@JsonProperty("status") val status: Pet.Status? = null
|
||||||
) {
|
) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -16,13 +16,13 @@ import io.swagger.annotations.ApiModelProperty
|
|||||||
* @param id
|
* @param id
|
||||||
* @param name
|
* @param name
|
||||||
*/
|
*/
|
||||||
data class Tag (
|
data class Tag(
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("id") val id: kotlin.Long? = null,
|
@JsonProperty("id") val id: kotlin.Long? = null,
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("name") val name: kotlin.String? = null
|
@JsonProperty("name") val name: kotlin.String? = null
|
||||||
) {
|
) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -22,31 +22,31 @@ import io.swagger.annotations.ApiModelProperty
|
|||||||
* @param phone
|
* @param phone
|
||||||
* @param userStatus User Status
|
* @param userStatus User Status
|
||||||
*/
|
*/
|
||||||
data class User (
|
data class User(
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("id") val id: kotlin.Long? = null,
|
@JsonProperty("id") val id: kotlin.Long? = null,
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("username") val username: kotlin.String? = null,
|
@JsonProperty("username") val username: kotlin.String? = null,
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("firstName") val firstName: kotlin.String? = null,
|
@JsonProperty("firstName") val firstName: kotlin.String? = null,
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("lastName") val lastName: kotlin.String? = null,
|
@JsonProperty("lastName") val lastName: kotlin.String? = null,
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("email") val email: kotlin.String? = null,
|
@JsonProperty("email") val email: kotlin.String? = null,
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("password") val password: kotlin.String? = null,
|
@JsonProperty("password") val password: kotlin.String? = null,
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("phone") val phone: kotlin.String? = null,
|
@JsonProperty("phone") val phone: kotlin.String? = null,
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "User Status")
|
@ApiModelProperty(example = "null", value = "User Status")
|
||||||
@JsonProperty("userStatus") val userStatus: kotlin.Int? = null
|
@JsonProperty("userStatus") val userStatus: kotlin.Int? = null
|
||||||
) {
|
) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1 +1 @@
|
|||||||
4.2.2-SNAPSHOT
|
4.3.0-SNAPSHOT
|
@ -17,13 +17,13 @@ class DefaultExceptionHandler {
|
|||||||
|
|
||||||
@ExceptionHandler(value = [ApiException::class])
|
@ExceptionHandler(value = [ApiException::class])
|
||||||
fun onApiException(ex: ApiException, response: HttpServletResponse): Unit =
|
fun onApiException(ex: ApiException, response: HttpServletResponse): Unit =
|
||||||
response.sendError(ex.code, ex.message)
|
response.sendError(ex.code, ex.message)
|
||||||
|
|
||||||
@ExceptionHandler(value = [NotImplementedError::class])
|
@ExceptionHandler(value = [NotImplementedError::class])
|
||||||
fun onNotImplemented(ex: NotImplementedError, response: HttpServletResponse): Unit =
|
fun onNotImplemented(ex: NotImplementedError, response: HttpServletResponse): Unit =
|
||||||
response.sendError(HttpStatus.NOT_IMPLEMENTED.value())
|
response.sendError(HttpStatus.NOT_IMPLEMENTED.value())
|
||||||
|
|
||||||
@ExceptionHandler(value = [ConstraintViolationException::class])
|
@ExceptionHandler(value = [ConstraintViolationException::class])
|
||||||
fun onConstraintViolation(ex: ConstraintViolationException, response: HttpServletResponse): Unit =
|
fun onConstraintViolation(ex: ConstraintViolationException, response: HttpServletResponse): Unit =
|
||||||
response.sendError(HttpStatus.BAD_REQUEST.value(), ex.constraintViolations.joinToString(", ") { it.message })
|
response.sendError(HttpStatus.BAD_REQUEST.value(), ex.constraintViolations.joinToString(", ") { it.message })
|
||||||
}
|
}
|
||||||
|
@ -16,13 +16,13 @@ import io.swagger.annotations.ApiModelProperty
|
|||||||
* @param id
|
* @param id
|
||||||
* @param name
|
* @param name
|
||||||
*/
|
*/
|
||||||
data class Category (
|
data class Category(
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("id") val id: kotlin.Long? = null,
|
@JsonProperty("id") val id: kotlin.Long? = null,
|
||||||
@get:Pattern(regexp="^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$")
|
@get:Pattern(regexp="^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$")
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("name") val name: kotlin.String? = null
|
@JsonProperty("name") val name: kotlin.String? = null
|
||||||
) {
|
) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -16,13 +16,13 @@ import io.swagger.annotations.ApiModelProperty
|
|||||||
* @param name Updated name of the pet
|
* @param name Updated name of the pet
|
||||||
* @param status Updated status of the pet
|
* @param status Updated status of the pet
|
||||||
*/
|
*/
|
||||||
data class InlineObject (
|
data class InlineObject(
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "Updated name of the pet")
|
@ApiModelProperty(example = "null", value = "Updated name of the pet")
|
||||||
@JsonProperty("name") val name: kotlin.String? = null,
|
@JsonProperty("name") val name: kotlin.String? = null,
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "Updated status of the pet")
|
@ApiModelProperty(example = "null", value = "Updated status of the pet")
|
||||||
@JsonProperty("status") val status: kotlin.String? = null
|
@JsonProperty("status") val status: kotlin.String? = null
|
||||||
) {
|
) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -16,13 +16,13 @@ import io.swagger.annotations.ApiModelProperty
|
|||||||
* @param additionalMetadata Additional data to pass to server
|
* @param additionalMetadata Additional data to pass to server
|
||||||
* @param file file to upload
|
* @param file file to upload
|
||||||
*/
|
*/
|
||||||
data class InlineObject1 (
|
data class InlineObject1(
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "Additional data to pass to server")
|
@ApiModelProperty(example = "null", value = "Additional data to pass to server")
|
||||||
@JsonProperty("additionalMetadata") val additionalMetadata: kotlin.String? = null,
|
@JsonProperty("additionalMetadata") val additionalMetadata: kotlin.String? = null,
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "file to upload")
|
@ApiModelProperty(example = "null", value = "file to upload")
|
||||||
@JsonProperty("file") val file: org.springframework.core.io.Resource? = null
|
@JsonProperty("file") val file: org.springframework.core.io.Resource? = null
|
||||||
) {
|
) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -17,16 +17,16 @@ import io.swagger.annotations.ApiModelProperty
|
|||||||
* @param type
|
* @param type
|
||||||
* @param message
|
* @param message
|
||||||
*/
|
*/
|
||||||
data class ModelApiResponse (
|
data class ModelApiResponse(
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("code") val code: kotlin.Int? = null,
|
@JsonProperty("code") val code: kotlin.Int? = null,
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("type") val type: kotlin.String? = null,
|
@JsonProperty("type") val type: kotlin.String? = null,
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("message") val message: kotlin.String? = null
|
@JsonProperty("message") val message: kotlin.String? = null
|
||||||
) {
|
) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -21,25 +21,25 @@ import io.swagger.annotations.ApiModelProperty
|
|||||||
* @param status Order Status
|
* @param status Order Status
|
||||||
* @param complete
|
* @param complete
|
||||||
*/
|
*/
|
||||||
data class Order (
|
data class Order(
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("id") val id: kotlin.Long? = null,
|
@JsonProperty("id") val id: kotlin.Long? = null,
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("petId") val petId: kotlin.Long? = null,
|
@JsonProperty("petId") val petId: kotlin.Long? = null,
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("quantity") val quantity: kotlin.Int? = null,
|
@JsonProperty("quantity") val quantity: kotlin.Int? = null,
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("shipDate") val shipDate: java.time.OffsetDateTime? = null,
|
@JsonProperty("shipDate") val shipDate: java.time.OffsetDateTime? = null,
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "Order Status")
|
@ApiModelProperty(example = "null", value = "Order Status")
|
||||||
@JsonProperty("status") val status: Order.Status? = null,
|
@JsonProperty("status") val status: Order.Status? = null,
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("complete") val complete: kotlin.Boolean? = null
|
@JsonProperty("complete") val complete: kotlin.Boolean? = null
|
||||||
) {
|
) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -16,34 +16,34 @@ import io.swagger.annotations.ApiModelProperty
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* A pet for sale in the pet store
|
* A pet for sale in the pet store
|
||||||
* @param id
|
|
||||||
* @param category
|
|
||||||
* @param name
|
* @param name
|
||||||
* @param photoUrls
|
* @param photoUrls
|
||||||
|
* @param id
|
||||||
|
* @param category
|
||||||
* @param tags
|
* @param tags
|
||||||
* @param status pet status in the store
|
* @param status pet status in the store
|
||||||
*/
|
*/
|
||||||
data class Pet (
|
data class Pet(
|
||||||
|
|
||||||
@get:NotNull
|
@get:NotNull
|
||||||
@ApiModelProperty(example = "doggie", required = true, value = "")
|
@ApiModelProperty(example = "doggie", required = true, value = "")
|
||||||
@JsonProperty("name") val name: kotlin.String,
|
@JsonProperty("name") val name: kotlin.String,
|
||||||
|
|
||||||
@get:NotNull
|
@get:NotNull
|
||||||
@ApiModelProperty(example = "null", required = true, value = "")
|
@ApiModelProperty(example = "null", required = true, value = "")
|
||||||
@JsonProperty("photoUrls") val photoUrls: kotlin.collections.List<kotlin.String>,
|
@JsonProperty("photoUrls") val photoUrls: kotlin.collections.List<kotlin.String>,
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("id") val id: kotlin.Long? = null,
|
@JsonProperty("id") val id: kotlin.Long? = null,
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("category") val category: Category? = null,
|
@JsonProperty("category") val category: Category? = null,
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("tags") val tags: kotlin.collections.List<Tag>? = null,
|
@JsonProperty("tags") val tags: kotlin.collections.List<Tag>? = null,
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "pet status in the store")
|
@ApiModelProperty(example = "null", value = "pet status in the store")
|
||||||
@JsonProperty("status") val status: Pet.Status? = null
|
@JsonProperty("status") val status: Pet.Status? = null
|
||||||
) {
|
) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -16,13 +16,13 @@ import io.swagger.annotations.ApiModelProperty
|
|||||||
* @param id
|
* @param id
|
||||||
* @param name
|
* @param name
|
||||||
*/
|
*/
|
||||||
data class Tag (
|
data class Tag(
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("id") val id: kotlin.Long? = null,
|
@JsonProperty("id") val id: kotlin.Long? = null,
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("name") val name: kotlin.String? = null
|
@JsonProperty("name") val name: kotlin.String? = null
|
||||||
) {
|
) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -22,31 +22,31 @@ import io.swagger.annotations.ApiModelProperty
|
|||||||
* @param phone
|
* @param phone
|
||||||
* @param userStatus User Status
|
* @param userStatus User Status
|
||||||
*/
|
*/
|
||||||
data class User (
|
data class User(
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("id") val id: kotlin.Long? = null,
|
@JsonProperty("id") val id: kotlin.Long? = null,
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("username") val username: kotlin.String? = null,
|
@JsonProperty("username") val username: kotlin.String? = null,
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("firstName") val firstName: kotlin.String? = null,
|
@JsonProperty("firstName") val firstName: kotlin.String? = null,
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("lastName") val lastName: kotlin.String? = null,
|
@JsonProperty("lastName") val lastName: kotlin.String? = null,
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("email") val email: kotlin.String? = null,
|
@JsonProperty("email") val email: kotlin.String? = null,
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("password") val password: kotlin.String? = null,
|
@JsonProperty("password") val password: kotlin.String? = null,
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "")
|
@ApiModelProperty(example = "null", value = "")
|
||||||
@JsonProperty("phone") val phone: kotlin.String? = null,
|
@JsonProperty("phone") val phone: kotlin.String? = null,
|
||||||
|
|
||||||
@ApiModelProperty(example = "null", value = "User Status")
|
@ApiModelProperty(example = "null", value = "User Status")
|
||||||
@JsonProperty("userStatus") val userStatus: kotlin.Int? = null
|
@JsonProperty("userStatus") val userStatus: kotlin.Int? = null
|
||||||
) {
|
) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user