SchemaBuilder

Represents the schema builder.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
var description: String?

Holds the description.

Link copied to clipboard
var format: String?

Holds the format.

Link copied to clipboard

Holds the items.

Link copied to clipboard
var nullable: Boolean

Holds the nullable.

Link copied to clipboard
var type: String

Holds the type.

Functions

Link copied to clipboard
fun build(): Schema

Handles build.

Link copied to clipboard
fun enum(vararg values: String)

Handles enum.

Link copied to clipboard
fun items(init: SchemaBuilder.() -> Unit)

Handles items.

Link copied to clipboard
fun property(name: String, init: SchemaBuilder.() -> Unit)

Handles property.

Link copied to clipboard
fun required(vararg fields: String)

Handles required.