Type alias SomeRootSchema

SomeRootSchema: SomeSchema & {
    definitions?: Readonly<Record<string, SomeSchema>>;
}

any valid root jtd schema

Root schemas may contain definitions referenced by "ref" schemas, whereas nested schemas may not.

Type declaration

  • Optional definitions?: Readonly<Record<string, SomeSchema>>

    optional definitions that exist in a root schema