StringSchema class

Schema class for "string" types. Can be used with or without enum values.

Signature:

exportdeclareclassStringSchemaextendsSchema

Extends:Schema

Constructors

ConstructorModifiersDescription
(constructor)(schemaParams, enumValues)Constructs a new instance of the StringSchema class

Properties

PropertyModifiersTypeDescription
enumstring[]

StringSchema.(constructor)

Constructs a new instance of the StringSchema class

Signature:

constructor(schemaParams?:SchemaParams,enumValues?:string[]);

Parameters

ParameterTypeDescription
schemaParamsSchemaParams
enumValuesstring[]

StringSchema.enum

Signature:

enum?:string[];