RSX Code Reference
    Preparing search index...
    • rsx
    • SchemaNode

    Interface SchemaNode<T>

    Typed schema node used for validation and JSON-Schema emission.

    interface SchemaNode<T> {
        _t?: T;
        isOptional: boolean;
        safeParse(value: unknown): SchemaParseResult<T>;
        toJSONSchema(): Record<string, unknown>;
    }

    Type Parameters

    • T
    Index
    _t?: T

    Phantom type marker used to recover the schema's TypeScript value type.

    isOptional: boolean

    True when the node represents an optional object property.

    • Emits this node as a JSON-Schema fragment.

      Returns Record<string, unknown>