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

    Interface StringValueConstraints

    Value constraints for textual shape factories.

    Restricts the admissible values of a shape to a closed enumeration or pins values that must be present. Accepted on its own by the format-specific factories, whose lexical space is already fixed, and included in the full StringConstraints set.

    interface StringValueConstraints {
        in?: readonly string[];
        hasValue?: readonly string[];
    }

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    in?: readonly string[]

    Allowed values (closed enumeration).

    When specified, values must be members of this list. Empty arrays are ignored.

    Inheritance — intersection of parent and child sets; empty result is reported as an error.

    undefined (no enumeration constraint)

    hasValue?: readonly string[]

    Required values that must be present.

    When specified, all listed values must appear in the resource. Empty arrays are ignored.

    Inheritance — union of parent and child required values; child must require all parent values.

    undefined (no required values)