Schema
data class Schema(val type: Type? = null, val properties: Map<String, Schema>? = null, val items: Schema? = null, val required: List<String>? = null, val description: String? = null, val enum: List<String>? = null)
Schema is used to define the format of input/output data.
Represents a select subset of an OpenAPI 3.0 schema object.
Constructors
Properties
Link copied to clipboard
A human-readable description of the schema.
Link copied to clipboard
Describes the schema of items in an array. Applicable only if type is Type.ARRAY.
Link copied to clipboard
Describes the properties of an object. The keys are property names and values are schemas for corresponding properties. Applicable only if type is Type.OBJECT.
Link copied to clipboard
A list of required property names. Applicable only if type is Type.OBJECT.