Schema Model
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
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
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