Skip to content

Data Validation

nexssp edited this page Jun 10, 2020 · 11 revisions

Nexss Programmer passing data between programs nad modules/packages in JSON format. Each module can receive and send messages to another one. You can validate data by setup project and use config file as below.

Below example will validate module that needs to have 2 required fields:

-input: called 'file'
-output: called 'file'

name: Email
debug: true
input:
  - name: _imap_username
    validate:
      - type: required
  - name: _imap_password
    validate:
      - type: required
output:
  - name: emailTotal
    validate:
      - type: number

Example of Validated Data

image

Clone this wiki locally