Forum Discussion

arvindnsn's avatar
arvindnsn
Contributor
10 months ago
Solved

Data Validator Pattern error

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 "...
  • SpiroTaleski's avatar
    2 years ago

    arvindnsn 

    You can try: 

    ['ABC', 'AEC', AMT'].indexOf($src_name) != -1

    ['ANC', 'ABK', AGT'].indexOf($src_name) != -1

    BR,

    Spiro Taleski