interface StringOptions {
    $id?: string;
    $schema?: string;
    contentEncoding?: StringContentEncodingOption;
    contentMediaType?: string;
    default?: any;
    description?: string;
    examples?: any;
    format?: StringFormatOption;
    maxLength?: number;
    minLength?: number;
    pattern?: string;
    readOnly?: boolean;
    title?: string;
    writeOnly?: boolean;
}

Hierarchy (view full)

Properties

$id?: string

Id for this schema

$schema?: string
contentEncoding?: StringContentEncodingOption

The content encoding for this string

contentMediaType?: string

The content media type for this string

default?: any

Default value for this schema

description?: string

Description of this schema

examples?: any

Example values matching this schema

A format this string should match

maxLength?: number

The maximum string length

minLength?: number

The minimum string length

pattern?: string

A regular expression pattern this string should match

readOnly?: boolean

Optional annotation for readOnly

title?: string

Title of this schema

writeOnly?: boolean

Optional annotation for writeOnly