Forum Discussion

jervin's avatar
jervin
New Contributor III
5 years ago

Data Validator - allow null values

I’m trying to use the Data Validator snap to validate birthdays in a file.

The birthday (DOB) field is optional - it can be null, but if there is a date it needs to be in the proper format.

I have this regex in my Data Validator, but it is catching null values as well. Is there a good way around this?

4 Replies

  • Raj's avatar
    Raj
    New Contributor II

    Url has extension ?format=json. I can get the data using Chrome browser. As suggested, I checked on Trust all Certificates. Still has the same HTTP validation error.

    Should the url not be quoted with double-quotes? Without out this, it throws error.

    Here is a public api:

    https://simple-api.github.io/api-offices/

    to try out.

    I haven’t even gone to set up snaplex. Just trying it out in Designer.

    • nganapathiraju's avatar
      nganapathiraju
      Former Employee

      What does this mean?

      • Raj's avatar
        Raj
        New Contributor II

        REST Get snap in designer itself is throwing error.