You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I came across to this situation when for some reason the pattern and format or any other keyword is not working under allOff, anyOf.
I'm trying to achieve this scenario:
first part: In my data from 'name' information should be required either first_name and last_name OR full_name OR business_name
second part: Along with 'name' info I need to have one contact info as well it can be any of those: email1, email2, email3, home_phone, cell_phone, work_phone, full address 1, full address 2.
Plus to all above we should validate phone and email correspondingly per pattern and per format.
The tricky part is that if we have minimal requirement for intance we have full_name and email_1 and those are valid there is no need to check for other fields validity. Other example if we have first_name last_name and full_address 1, and we have invalid email_3 we should ignore email_3 validation as we have minimal set of what we needed ( first_name last_name and full_address 1).
Here is my partial for that validation, but its not working. (properties are with dots - its ok, I'm not implying to nested)
I came across to this situation when for some reason the pattern and format or any other keyword is not working under allOff, anyOf.
I'm trying to achieve this scenario:
first part: In my data from 'name' information should be required either first_name and last_name OR full_name OR business_name
second part: Along with 'name' info I need to have one contact info as well it can be any of those: email1, email2, email3, home_phone, cell_phone, work_phone, full address 1, full address 2.
Plus to all above we should validate phone and email correspondingly per pattern and per format.
The tricky part is that if we have minimal requirement for intance we have full_name and email_1 and those are valid there is no need to check for other fields validity. Other example if we have first_name last_name and full_address 1, and we have invalid email_3 we should ignore email_3 validation as we have minimal set of what we needed ( first_name last_name and full_address 1).
Here is my partial for that validation, but its not working. (properties are with dots - its ok, I'm not implying to nested)
The text was updated successfully, but these errors were encountered: