Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Validate

Validate data (system, chaijs, user customize, user customize base on chaijs)

Some validators which system provided:

  • schema: Validate object schema
  • length: Validate length of array or string
  • match: Validate object must be match target
  • in: Validate object must be in targets
- Vars:
    obj: [1,2,3,4]

- Validate:
    title: Validate object schema which use builtin system
    func: schema
    args: 
      - ${obj}
      - { "type": "array" }

Hierarchy

  • Tag
    • Validate

Index

Constructors

constructor

  • new Validate(attrs: any, attrName?: string): Validate
  • Parameters

    • attrs: any
    • Optional attrName: string

    Returns Validate

Properties

args

args: any[]

Validator arguments

async

async: boolean

Run async

description

description: string

Inject request when it is embeded in a request

disabled

disabled: boolean

Ignore this, not run

func

func: string

Validator name

ignoreError

ignoreError: boolean

Keep run the next when got error

slient

slient: boolean

Not show log

testIt

testIt: boolean

Only allow run it then ignore others which not set testIt or set it to false

title

title: string

Step title

vars

vars: any

Declare global variable