schema-components - v3.7.0
    Preparing search index...

    Function constraintHint

    • Build a human-readable constraint description string.

      Returns undefined when no constraint worth announcing is present. Pattern hints are suppressed when a format is set because the format already implies the pattern and the resulting copy would be misleading ("Must match pattern" alongside a format: "email" field would read as if the schema required a non-email regex).

      Parameters

      Returns string | undefined