package io.apibuilder.swagger.v0.models import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonProperty import io.apibuilder.swagger.v0.enums.FormatType import java.io.Serializable import kotlin.Any import kotlin.Boolean import kotlin.Int import kotlin.Long import kotlin.String import kotlin.collections.List import kotlin.collections.Map /** * This code was generated by [models.generator.kotlin.KotlinGenerator] */ @JsonIgnoreProperties(ignoreUnknown=true) data class Schema( @JsonProperty("ref") @get:JsonProperty("ref") val ref: String?, @JsonProperty("format") @get:JsonProperty("format") val format: FormatType?, @JsonProperty("title") @get:JsonProperty("title") val title: String?, @JsonProperty("description") @get:JsonProperty("description") val description: String?, @JsonProperty("default") @get:JsonProperty("default") val default: Any?, @JsonProperty("multipleOf") @get:JsonProperty("multipleOf") val multipleOf: Long?, @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("maxProperties") @get:JsonProperty("maxProperties") val maxProperties: Int?, @JsonProperty("minProperties") @get:JsonProperty("minProperties") val minProperties: Int?, @JsonProperty("required") @get:JsonProperty("required") val required: List?, @JsonProperty("enum") @get:JsonProperty("enum") val enum_: List?, @JsonProperty("type") @get:JsonProperty("type") val type: List?, @JsonProperty("items") @get:JsonProperty("items") val items: Schema?, @JsonProperty("allOf") @get:JsonProperty("allOf") val allOf: List?, @JsonProperty("properties") @get:JsonProperty("properties") val properties: Map?, @JsonProperty("additionalProperties") @get:JsonProperty("additionalProperties") val additionalProperties: Schema?, @JsonProperty("discriminator") @get:JsonProperty("discriminator") val discriminator: String?, @JsonProperty("readOnly") @get:JsonProperty("readOnly") val readOnly: Boolean?, @JsonProperty("xml") @get:JsonProperty("xml") val xml: Xml?, @JsonProperty("externalDocs") @get:JsonProperty("externalDocs") val externalDocs: ExternalDocumentation?, @JsonProperty("example") @get:JsonProperty("example") val example: Any? ) : Serializable { fun toJsonString(): String = io.apibuilder.swagger.v0.models.JacksonObjectMapperFactory.create().writeValueAsString(this) companion object { fun parseJson(json: String): Schema = io.apibuilder.swagger.v0.models.JacksonObjectMapperFactory.create().readValue( json, Schema::class.java) } }