@dxos/echo
    Preparing search index...

    Variable toJsonSchemaConst

    toJsonSchema: (
        schema: Top | AnyEntity,
        options?: JsonSchemaOptions,
    ) => {
        $comment?: string;
        $defs?: {
            [key: string]: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...;
        };
        $id?: string;
        $ref?: string;
        $schema?: string;
        additionalItems?: | boolean
        | (
            { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...
        );
        additionalProperties?: | boolean
        | (
            { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...
        );
        allOf?: (
            { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...
        )[];
        annotations?: {
            annotations?: { [key: string]: any };
            formInline?: boolean;
            generator?:
                | string
                | [string, number]
                | { args?: any[]; generator: string; probability?: number };
            labelProp?: JsonPath | JsonPath[];
            meta?: { [key: string]: any };
            type?: { schemaId?: string; typename: string; version: string };
        };
        anyOf?: (
            { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...
        )[];
        const?: any;
        contains?: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...;
        contentEncoding?: string;
        contentMediaType?: string;
        currency?: string;
        default?: any;
        definitions?: {
            [key: string]: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...;
        };
        dependencies?: {
            [key: string]: | string
            | string[]
            | (
                { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...
            );
        };
        description?: string;
        echo?: {
            annotations?: { [key: string]: any };
            formInline?: boolean;
            generator?:
                | string
                | [string, number]
                | { args?: any[]; generator: string; probability?: number };
            labelProp?: JsonPath | JsonPath[];
            meta?: { [key: string]: any };
            type?: { schemaId?: string; typename: string; version: string };
        };
        else?: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...;
        entityKind?: Object
        | Relation
        | Type;
        enum?: any[];
        examples?: any[];
        exclusiveMaximum?: number;
        exclusiveMinimum?: number;
        format?: string;
        if?: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...;
        items?:
            | (
                { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...
            )
            | (
                { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...
            )[];
        maximum?: number;
        maxItems?: number;
        maxLength?: number;
        maxProperties?: number;
        minimum?: number;
        minItems?: number;
        minLength?: number;
        minProperties?: number;
        multipleOf?: number;
        not?: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...;
        oneOf?: (
            { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...
        )[];
        pattern?: string;
        patternProperties?: {
            [key: string]: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...;
        };
        properties?: {
            [key: string]: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...;
        };
        propertyNames?: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...;
        propertyOrder?: string[];
        readOnly?: boolean;
        reference?: {
            schema: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...;
            schemaObject?: string;
            schemaVersion?: string;
        };
        relationSource?: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...;
        relationTarget?: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...;
        required?: string[];
        then?: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...;
        title?: string;
        type?: | "string"
        | "number"
        | "boolean"
        | "object"
        | "array"
        | "integer"
        | "null"
        | (
            | "string"
            | "number"
            | "boolean"
            | "object"
            | "array"
            | "integer"
            | "null"
        )[];
        typename?: string;
        uniqueItems?: boolean;
        version?: string;
        writeOnly?: boolean;
    } = jsonSchemaInternal.toJsonSchema

    Encode Effect Schema to JSON Schema.

    Type declaration

      • (
            schema: Top | AnyEntity,
            options?: JsonSchemaOptions,
        ): {
            $comment?: string;
            $defs?: {
                [key: string]: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...;
            };
            $id?: string;
            $ref?: string;
            $schema?: string;
            additionalItems?: | boolean
            | (
                { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...
            );
            additionalProperties?: | boolean
            | (
                { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...
            );
            allOf?: (
                { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...
            )[];
            annotations?: {
                annotations?: { [key: string]: any };
                formInline?: boolean;
                generator?:
                    | string
                    | [string, number]
                    | { args?: any[]; generator: string; probability?: number };
                labelProp?: JsonPath | JsonPath[];
                meta?: { [key: string]: any };
                type?: { schemaId?: string; typename: string; version: string };
            };
            anyOf?: (
                { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...
            )[];
            const?: any;
            contains?: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...;
            contentEncoding?: string;
            contentMediaType?: string;
            currency?: string;
            default?: any;
            definitions?: {
                [key: string]: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...;
            };
            dependencies?: {
                [key: string]: | string
                | string[]
                | (
                    { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...
                );
            };
            description?: string;
            echo?: {
                annotations?: { [key: string]: any };
                formInline?: boolean;
                generator?:
                    | string
                    | [string, number]
                    | { args?: any[]; generator: string; probability?: number };
                labelProp?: JsonPath | JsonPath[];
                meta?: { [key: string]: any };
                type?: { schemaId?: string; typename: string; version: string };
            };
            else?: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...;
            entityKind?: Object
            | Relation
            | Type;
            enum?: any[];
            examples?: any[];
            exclusiveMaximum?: number;
            exclusiveMinimum?: number;
            format?: string;
            if?: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...;
            items?:
                | (
                    { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...
                )
                | (
                    { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...
                )[];
            maximum?: number;
            maxItems?: number;
            maxLength?: number;
            maxProperties?: number;
            minimum?: number;
            minItems?: number;
            minLength?: number;
            minProperties?: number;
            multipleOf?: number;
            not?: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...;
            oneOf?: (
                { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...
            )[];
            pattern?: string;
            patternProperties?: {
                [key: string]: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...;
            };
            properties?: {
                [key: string]: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...;
            };
            propertyNames?: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...;
            propertyOrder?: string[];
            readOnly?: boolean;
            reference?: {
                schema: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...;
                schemaObject?: string;
                schemaVersion?: string;
            };
            relationSource?: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...;
            relationTarget?: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...;
            required?: string[];
            then?: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...;
            title?: string;
            type?: | "string"
            | "number"
            | "boolean"
            | "object"
            | "array"
            | "integer"
            | "null"
            | (
                | "string"
                | "number"
                | "boolean"
                | "object"
                | "array"
                | "integer"
                | "null"
            )[];
            typename?: string;
            uniqueItems?: boolean;
            version?: string;
            writeOnly?: boolean;
        }
      • Convert effect schema to JSON Schema. NOTE: This handles custom annotations.

        Parameters

        • schema: Top | AnyEntity
        • options: JsonSchemaOptions = {}

        Returns {
            $comment?: string;
            $defs?: {
                [key: string]: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...;
            };
            $id?: string;
            $ref?: string;
            $schema?: string;
            additionalItems?: | boolean
            | (
                { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...
            );
            additionalProperties?: | boolean
            | (
                { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...
            );
            allOf?: (
                { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...
            )[];
            annotations?: {
                annotations?: { [key: string]: any };
                formInline?: boolean;
                generator?:
                    | string
                    | [string, number]
                    | { args?: any[]; generator: string; probability?: number };
                labelProp?: JsonPath | JsonPath[];
                meta?: { [key: string]: any };
                type?: { schemaId?: string; typename: string; version: string };
            };
            anyOf?: (
                { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...
            )[];
            const?: any;
            contains?: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...;
            contentEncoding?: string;
            contentMediaType?: string;
            currency?: string;
            default?: any;
            definitions?: {
                [key: string]: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...;
            };
            dependencies?: {
                [key: string]: | string
                | string[]
                | (
                    { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...
                );
            };
            description?: string;
            echo?: {
                annotations?: { [key: string]: any };
                formInline?: boolean;
                generator?:
                    | string
                    | [string, number]
                    | { args?: any[]; generator: string; probability?: number };
                labelProp?: JsonPath | JsonPath[];
                meta?: { [key: string]: any };
                type?: { schemaId?: string; typename: string; version: string };
            };
            else?: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...;
            entityKind?: Object
            | Relation
            | Type;
            enum?: any[];
            examples?: any[];
            exclusiveMaximum?: number;
            exclusiveMinimum?: number;
            format?: string;
            if?: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...;
            items?:
                | (
                    { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...
                )
                | (
                    { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...
                )[];
            maximum?: number;
            maxItems?: number;
            maxLength?: number;
            maxProperties?: number;
            minimum?: number;
            minItems?: number;
            minLength?: number;
            minProperties?: number;
            multipleOf?: number;
            not?: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...;
            oneOf?: (
                { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...
            )[];
            pattern?: string;
            patternProperties?: {
                [key: string]: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...;
            };
            properties?: {
                [key: string]: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...;
            };
            propertyNames?: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...;
            propertyOrder?: string[];
            readOnly?: boolean;
            reference?: {
                schema: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...;
                schemaObject?: string;
                schemaVersion?: string;
            };
            relationSource?: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...;
            relationTarget?: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...;
            required?: string[];
            then?: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...;
            title?: string;
            type?: | "string"
            | "number"
            | "boolean"
            | "object"
            | "array"
            | "integer"
            | "null"
            | (
                | "string"
                | "number"
                | "boolean"
                | "object"
                | "array"
                | "integer"
                | "null"
            )[];
            typename?: string;
            uniqueItems?: boolean;
            version?: string;
            writeOnly?: boolean;
        }

        • Optional$comment?: string

          Comments are ignored when interpreting the schema.

        • Optional$defs?: {
              [key: string]: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...;
          }
        • Optional$id?: string

          Identifier for this schema. This schema might be referenced by $ref clause in other schemas.

        • Optional$ref?: string

          Reference to another schema.

        • Optional$schema?: string

          Schema of this schema. Set to "https://json-schema.org/draft-07/schema".

        • OptionaladditionalItems?:
              | boolean
              | (
                  { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...
              )
        • OptionaladditionalProperties?:
              | boolean
              | (
                  { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...
              )
        • OptionalallOf?: (
              { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...
          )[]
        • Optionalannotations?: {
              annotations?: { [key: string]: any };
              formInline?: boolean;
              generator?:
                  | string
                  | [string, number]
                  | { args?: any[]; generator: string; probability?: number };
              labelProp?: JsonPath | JsonPath[];
              meta?: { [key: string]: any };
              type?: { schemaId?: string; typename: string; version: string };
          }

          ECHO-specific annotations.

          • Optionalannotations?: { [key: string]: any }

            Superseded by meta.

          • OptionalformInline?: boolean

            Render a referenced object's fields inline in forms. Mapped from FormInlineAnnotationId.

          • Optionalgenerator?:
                | string
                | [string, number]
                | { args?: any[]; generator: string; probability?: number }

            Generator function for this schema. Mapped from GeneratorAnnotationId; mirrors GeneratorAnnotationValue, whose object form ({ generator, args }) is used by schemas like Task — a narrower contract here makes those schemas unserializable (Operation.serialize fails on any operation referencing them).

          • OptionallabelProp?: JsonPath | JsonPath[]

            Label for this schema. Mapped from LabelAnnotationId.

          • Optionalmeta?: { [key: string]: any }

            PropertyMeta annotations get serialized here.

          • Optionaltype?: { schemaId?: string; typename: string; version: string }
        • OptionalanyOf?: (
              { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...
          )[]
        • Optionalconst?: any

          This schema only matches values that are equal to this value.

        • Optionalcontains?: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...
        • OptionalcontentEncoding?: string
        • OptionalcontentMediaType?: string
        • Optionalcurrency?: string
        • Optionaldefault?: any

          Default value for this schema.

        • Optionaldefinitions?: {
              [key: string]: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...;
          }
        • Optionaldependencies?: {
              [key: string]:
                  | string
                  | string[]
                  | (
                      { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...
                  );
          }
        • Optionaldescription?: string

          Description of this schema.

        • Optionalecho?: {
              annotations?: { [key: string]: any };
              formInline?: boolean;
              generator?:
                  | string
                  | [string, number]
                  | { args?: any[]; generator: string; probability?: number };
              labelProp?: JsonPath | JsonPath[];
              meta?: { [key: string]: any };
              type?: { schemaId?: string; typename: string; version: string };
          }

          Use annotations instead.

          • Optionalannotations?: { [key: string]: any }

            Superseded by meta.

          • OptionalformInline?: boolean

            Render a referenced object's fields inline in forms. Mapped from FormInlineAnnotationId.

          • Optionalgenerator?:
                | string
                | [string, number]
                | { args?: any[]; generator: string; probability?: number }

            Generator function for this schema. Mapped from GeneratorAnnotationId; mirrors GeneratorAnnotationValue, whose object form ({ generator, args }) is used by schemas like Task — a narrower contract here makes those schemas unserializable (Operation.serialize fails on any operation referencing them).

          • OptionallabelProp?: JsonPath | JsonPath[]

            Label for this schema. Mapped from LabelAnnotationId.

          • Optionalmeta?: { [key: string]: any }

            PropertyMeta annotations get serialized here.

          • Optionaltype?: { schemaId?: string; typename: string; version: string }
        • Optionalelse?: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...
        • OptionalentityKind?: Object | Relation | Type

          Defines whether this schema is an object schema or a relation schema.

        • Optionalenum?: any[]

          This schema only matches one of the values in this array.

        • Optionalexamples?: any[]

          Examples of instances of this schema.

        • OptionalexclusiveMaximum?: number
        • OptionalexclusiveMinimum?: number
        • Optionalformat?: string

          Serialized from FormatAnnotationId.

        • Optionalif?: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...
        • Optionalitems?:
              | (
                  { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...
              )
              | (
                  { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...
              )[]
        • Optionalmaximum?: number
        • OptionalmaxItems?: number
        • OptionalmaxLength?: number
        • OptionalmaxProperties?: number
        • Optionalminimum?: number
        • OptionalminItems?: number
        • OptionalminLength?: number
        • OptionalminProperties?: number
        • OptionalmultipleOf?: number
        • Optionalnot?: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...
        • OptionaloneOf?: (
              { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...
          )[]
        • Optionalpattern?: string

          Regex pattern for strings.

        • OptionalpatternProperties?: {
              [key: string]: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...;
          }
        • Optionalproperties?: {
              [key: string]: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...;
          }
        • OptionalpropertyNames?: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...
        • OptionalpropertyOrder?: string[]

          Non-standard JSON Schema extension. Defines the order of properties in the object. The unmentioned properties are placed at the end.

          Related: https://github.com/json-schema/json-schema/issues/119

        • OptionalreadOnly?: boolean

          Whether this schema is read-only.

        • Optionalreference?: {
              schema: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...;
              schemaObject?: string;
              schemaVersion?: string;
          }
        • OptionalrelationSource?: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...

          Source of this relation. Only for relation schemas. The referenced schema must be an object schema.

        • OptionalrelationTarget?: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...

          Target of this relation. Only for relation schemas. The referenced schema must be an object schema.

        • Optionalrequired?: string[]
        • Optionalthen?: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...
        • Optionaltitle?: string

          Title of this schema.

        • Optionaltype?:
              | "string"
              | "number"
              | "boolean"
              | "object"
              | "array"
              | "integer"
              | "null"
              | (
                  | "string"
                  | "number"
                  | "boolean"
                  | "object"
                  | "array"
                  | "integer"
                  | "null"
              )[]

          Base type of the schema.

        • Optionaltypename?: string

          Typename of this schema. Only on schema representing an ECHO object.

          'com.example.type.my-type'
          
        • OptionaluniqueItems?: boolean
        • Optionalversion?: string

          Version of this schema. Custom dialect for ECHO.

        • OptionalwriteOnly?: boolean

          Whether this schema is write-only.

    O(schema size) encode on every call.