Types

Link copied to clipboard
data class OneSchemaModelOf<T>(val oneOf: List<SchemaModel<out T>>, var properties: Map<String, SchemaModel<*>>? = null, val discriminator: Discriminator<T>? = null) : SchemaModel<T>
Link copied to clipboard
data class SchemaModelArr<T>(var items: SchemaModel<*>?, var nullable: Boolean = false, var example: T? = null, var examples: List<T>? = null, var uniqueItems: Boolean? = null, var minItems: Int? = null, var maxItems: Int? = null, var type: DataType = DataType.array, var description: String? = null) : SchemaModel<T>
Link copied to clipboard
data class SchemaModelEnum<T>(var enum: List<String>, var nullable: Boolean = false, var example: T? = null, var examples: List<T>? = null, var type: DataType = DataType.string, var description: String? = null) : SchemaModel<T>
Link copied to clipboard
data class SchemaModelLitteral<T>(var type: DataType? = null, var format: DataFormat? = null, var nullable: Boolean = false, var minimum: T? = null, var maximum: T? = null, var minLength: Int? = null, var maxLength: Int? = null, var pattern: String? = null, var example: T? = null, var examples: List<T>? = null, var description: String? = null) : SchemaModel<T>
Link copied to clipboard
data class SchemaModelMap<T : Map<String, U>, U>(var additionalProperties: SchemaModel<U>, var nullable: Boolean = false, var example: T? = null, var examples: List<T>? = null, var type: DataType = DataType.`object`, var description: String? = null) : SchemaModel<T>
Link copied to clipboard
data class SchemaModelObj<T>(var properties: Map<String, SchemaModel<*>>, var required: List<String>, var nullable: Boolean = false, var example: T? = null, var examples: List<T>? = null, var type: DataType = DataType.`object`, var description: String? = null, var discriminator: Discriminator<T>? = null) : SchemaModel<T>
Link copied to clipboard
data class SchemaModelRef<T>(val $ref: String) : SchemaModel<T> , RefModel<SchemaModel<T>>

Properties

Link copied to clipboard
abstract var description: String?
Link copied to clipboard
abstract var example: T?
Link copied to clipboard
abstract var examples: List<T>?

Functions

Link copied to clipboard
open fun serialize(): Map<String, Any?>