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

    Function text

    • Creates a shape for single-line plain text values.

      Defaults the datatype to xsd:string.

      Accepts space-normalised single-line content: at least one non-whitespace character, no line breaks or tabs, no leading or trailing whitespace, and single spaces between words. Use it for labels, names and other short unformatted values that must survive rendering in any layout; reach for markdown when the content carries formatting or spans multiple lines.

      Parameters

      Returns StringShape

      An immutable shape for validating single-line plain text

      If constraints contains contradictory values