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

    Interface DictionaryShape

    Shape definition for language-tagged string values.

    Cardinality of the enclosing SetShape determines whether each tag holds a single string or a string array.

    Inheritance

    When a resource!ResourceShape extends a parent via extends, language-tagged entries are merged according to the following rules. The child is the extending shape; the parent is the inherited shape.

    Field Override Rule
    kind Cannot be overridden
    model Child overrides parent; conflicting parents without child override are reported as an error
    minLength Child ≥ parent, narrowing the minimum length
    maxLength Child ≤ parent, narrowing the maximum length
    languageIn Intersection of parent and child sets; empty result is reported as an error

    Cross-Field Validation

    • merged minLength must be ≤ merged maxLength
    interface DictionaryShape {
        kind: "dictionary";
        model: Locales;
        minLength?: number;
        maxLength?: number;
        languageIn?: readonly string[];
    }

    Hierarchy (View Summary)

    Index

    Properties

    kind: "dictionary"

    Discriminator identifying this as a language-tagged shape.

    Inheritance — cannot be overridden.

    model: Locales

    Prototype value for runtime model assembly.

    Stored as supplied to the factory: a tag-keyed map associating each language tag (or tag range) with its content.

    Inheritance — child overrides parent; conflicting parents without child override are reported as an error.

    { "*": "" } (wildcard tag range bound to an empty string)

    minLength?: number

    Minimum string length in characters.

    Inheritance — child value must be ≥ parent value, narrowing the lower bound.

    undefined (no minimum length)

    maxLength?: number

    Maximum string length in characters.

    Inheritance — child value must be ≤ parent value, narrowing the upper bound.

    undefined (no maximum length)

    languageIn?: readonly string[]

    Allowed language ranges for language-tagged strings.

    When specified, language tags must match one of the given TagRange values under RFC 4647 basic filtering. Each range is a basic language range (a sequence of subtags or the standalone * wildcard); extended ranges such as en-* are not accepted. Empty arrays are ignored.

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

    undefined (no language constraint)