Closed vtemian closed 7 years ago
When creating new records with an invalid payload, it would be nice to receive errors for each invalid field at once. For example:
{ 'name': '', 'type': 'A', 'values': ['a.com'], 'ttl': '-1' }
I expect to receive a 400 response
{ 'name': 'Name can't empty', 'ttl': 'Ensure this value is greater than or equal to 1.', 'values': 'Value is not a valid IPv4 address.' }
When creating new records with an invalid payload, it would be nice to receive errors for each invalid field at once. For example:
I expect to receive a 400 response