string

fun string(choices: List<String>? = null, description: String? = null): AirshipJsonSchema(source)

A string value, optionally constrained to a fixed set of choices.

Return

The schema.

Parameters

choices

Permitted values (JSON Schema enum), or null for any string.

description

Optional description surfaced to the model.