Interface RefSchema<K>

a schema referencing a predefined definition

interface RefSchema<K> {
    metadata?: unknown;
    nullable?: boolean;
    ref: K;
}

Type Parameters

  • K extends string = string

Properties

metadata?: unknown

optional metadata on a schema

nullable?: boolean

a key indicating if a type can be null

ref: K

a key with the name of the reference in definitions