cancel
Showing results for 
Search instead for 
Did you mean: 

Data Validator Pattern error

arvindnsn
Contributor

Hello,

  I am building an API that used PUT method to update a set of JSON data into my taget database. One of the contents of the PUT method is a boolean type that would receive ether a "true" or "false" and is a mandatory entity.

I am using a Data Validator Snap with the "Pattern" constraint, but i am getting  the following error.

arvindnsn_1-1728668635086.png

 

arvindnsn_0-1728668596624.png

Below is the error, I am getting

arvindnsn_2-1728668687323.png

Do i have to do any conversion of the incoming into a string? How do i resolve this issue?

Thanks

Aravind N

 

 

 

 

1 REPLY 1

hcherukuri
Employee
Employee

Hello Aravind,

Try use Type in Constraint.

hcherukuri_0-1729075055917.png

Thanks

Hari