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

    Interface StringConstraints

    Constraints that apply to string schemas.

    interface StringConstraints {
        minLength?: number;
        maxLength?: number;
        pattern?: string;
        format?: string;
        formatPattern?: RegExp;
        contentEncoding?: string;
        contentMediaType?: string;
    }
    Index

    Properties

    minLength?: number
    maxLength?: number
    pattern?: string
    format?: string
    formatPattern?: RegExp

    Derived RegExp from the format string, if the format is recognised.

    contentEncoding?: string
    contentMediaType?: string