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 have some JSON that looks like this {'images': [{'name': 'field-1', 'value': 'http://example.com/foo'}, {'name': 'field-2', 'value': 'http://example.com/bar'}, ...]}.
What I'd like to know is what is the best way to validate each of these name-value pairs as though they were fields? In particular, I need them to be optional and valid URLs.
The text was updated successfully, but these errors were encountered:
However field errors do not map back to the input names, which are dynamically generated on the front-end, e.g. field-1 where 1 is the ID of an object in our database.
I have some JSON that looks like this
{'images': [{'name': 'field-1', 'value': 'http://example.com/foo'}, {'name': 'field-2', 'value': 'http://example.com/bar'}, ...]}
.What I'd like to know is what is the best way to validate each of these name-value pairs as though they were fields? In particular, I need them to be optional and valid URLs.
The text was updated successfully, but these errors were encountered: