Validation errors typically occur when a request is malformed. Usually, because a field has not been given the correct value type or the JSON is malformed.
Common Causes of Validation Errors
- Incorrect Data Types: Sending a string where an integer is expected, for example.
- Missing Required Fields: Failing to include mandatory fields.
- Invalid Formats: Providing data in an incorrect format, such as a poorly formatted email address or date.
- Out-of-Range Values: Submitting values outside the acceptable range.
- Malformed JSON: Incorrectly structured JSON data.
Identifying Validation Errors
A request containing invalid values will result in responses containing BR-DGE Validation Errors designed to help you identify what is invalid about your query. Please see more details on our categorised list of Validation Errors.
Troubleshooting Steps
- Review the Error Message: Examine the response body to understand which fields failed validation and why.
- Format Data Correctly: Ensure all fields follow the expected format. For instance, an email should follow the standard email format.
- Refer to the BR-DGE API Reference for the correct data types, formats, and required fields; BR-DGE REST API.
If you continue to experience issues, do not hesitate to reach out to our BR-DGE Customer Support team for help. Provide us with the full request and response you are using, so we can help diagnose and resolve the issue.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article