package io.apibuilder.swagger.v0.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import io.apibuilder.swagger.v0.enums.CollectionFormatType import io.apibuilder.swagger.v0.enums.FormatType import io.apibuilder.swagger.v0.enums.ItemsType import java.io.Serializable import kotlin.Any import kotlin.Boolean import kotlin.Int import kotlin.Long import kotlin.String import kotlin.collections.List /** * This code was generated by [models.generator.kotlin.KotlinGenerator] * TODO: Can this be a union type with items? */ @JsonIgnoreProperties(ignoreUnknown=true) data class Header( @JsonProperty("description") @get:JsonProperty("description") val description: String?, @JsonProperty("type") @get:JsonProperty("type") val type: ItemsType, @JsonProperty("format") @get:JsonProperty("format") val format: FormatType?, @JsonProperty("items") @get:JsonProperty("items") val items: Items?, @JsonProperty("collectionFormat") @get:JsonProperty("collectionFormat") val collectionFormat: CollectionFormatType?, @JsonProperty("default") @get:JsonProperty("default") val default: Any?, @JsonProperty("maximum") @get:JsonProperty("maximum") val maximum: Long?, @JsonProperty("exclusiveMaximum") @get:JsonProperty("exclusiveMaximum") val exclusiveMaximum: Boolean?, @JsonProperty("minimum") @get:JsonProperty("minimum") val minimum: Long?, @JsonProperty("exclusiveMinimum") @get:JsonProperty("exclusiveMinimum") val exclusiveMinimum: Boolean?, @JsonProperty("maxLength") @get:JsonProperty("maxLength") val maxLength: Int?, @JsonProperty("minLength") @get:JsonProperty("minLength") val minLength: Int?, @JsonProperty("pattern") @get:JsonProperty("pattern") val pattern: String?, @JsonProperty("maxItems") @get:JsonProperty("maxItems") val maxItems: Int?, @JsonProperty("minItems") @get:JsonProperty("minItems") val minItems: Int?, @JsonProperty("uniqueItems") @get:JsonProperty("uniqueItems") val uniqueItems: Boolean?, @JsonProperty("enum") @get:JsonProperty("enum") val enum_: List?, @JsonProperty("multipleOf") @get:JsonProperty("multipleOf") val multipleOf: Long? ) : Serializable { fun toJsonString(): String = io.apibuilder.swagger.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): Header = io.apibuilder.swagger.v0.models.JacksonObjectMapperFactory.create().readValue( json, Header::class.java) } }