Contents

init(type:description:anyOf:)

Creates a schema for a string enumeration.

Declaration

init(type: any Generable.Type, description: String? = nil, anyOf choices: [String])

Parameters

  • type:

    The type this schema represents.

  • description:

    A natural language description of this schema.

  • choices:

    The allowed choices.

See Also

Creating a generation schema