Interface ParamOptions

Action's parameter options

interface ParamOptions {
    description?: string;
    isCollection?: boolean;
    label?: string;
    lengthInCharacter?: boolean;
    max?: string | number;
    message?: string;
    metaName?: string;
    min?: string | number;
    pattern?: string | RegExp;
    required?: boolean;
    type: string;
}

Properties

description?: string

the detail info of parameter

isCollection?: boolean

Whether the parameter is a collection type

label?: string

label of parameter

lengthInCharacter?: boolean

Whether to calculate the length of the string in characters

max?: string | number

Maximum value of the parameter

message?: string

Prompt message returned when the parameter is illegal

metaName?: string

The schema object name to which the parameter is bound, used only when type equal Object

min?: string | number

Minimum value of the parameter

pattern?: string | RegExp

Matching pattern when parameter checking

required?: boolean

Whether the parameter is required

type: string

Parameter type name, support: Boolean, String, Number, Date, Datetime, Object, Any, Class