@metreeca/blue - v0.9.1
    Preparing search index...

    Interface StringShape

    Shape definition for textual values.

    Validates textual values with length constraints, lexical validation, language tag constraints, and value constraints for strings. Supports XSD string datatypes and temporal formats.

    interface StringShape {
        kind: "string";
        model: string;
        pattern?: string;
        minLength?: number;
        maxLength?: number;
        in?: readonly string[];
        hasValue?: readonly string[];
    }

    Hierarchy (View Summary)

    Index

    Properties

    kind: "string"

    Discriminator identifying this as a textual shape.

    model: string

    Prototype value for runtime model assembly.

    "" (empty string)

    pattern?: string

    Regular expression pattern that values must match.

    The pattern is tested against the entire value. Use anchors (^ and $) to match the complete string rather than partial matches.

    undefined (no pattern constraint)

    minLength?: number

    Minimum string length in characters.

    undefined (no minimum length)

    maxLength?: number

    Maximum string length in characters.

    undefined (no maximum length)

    in?: readonly string[]

    Allowed values (closed enumeration).

    When specified, values must be members of this list.

    undefined (no enumeration constraint)

    hasValue?: readonly string[]

    Required values that must be present.

    When specified, all listed values must appear in the resource.

    undefined (no required values)