Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Built-In Input Validators

Given below are the pre-defined, standard validators available in the WSO2 Data Services Server. These validators Validators have to be added to individual input mappings in a query. Follow the instructions below to beginadd built-in input validators.

1) Click Add New Query link in the Queries page.

Image Added

The Queries page appears when creating a Data Service. For information on steps upto opening the Queries page, refer to sectionsub sections in: Create a Data Service Using Various Data Sources. Image Removed

2) In the Add New Query page that appears, provide the QueryID and DataSource.

The Input Mappings section opens.

3) Click the Add New Input Mapping link. Image Added
4) The Add Input Mapping page opens. The Validator drop-down menu contains four built-in validators and the custom validator option.

Image Added

Explained below are the pre-defined, standard validators available in the WSO2 Data Services Server.

Long Range Validator

Used to validate an integer value and check if it is in the specified range. The validator requires minimum and the maximum values of the range to be validated as shown below:. For example,

Image Added