Created
November 9, 2015 16:32
-
-
Save alber70g/e7220dd2cf667969e683 to your computer and use it in GitHub Desktop.
Errors and error parameters, error response message
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"key": "fieldRequired", | |
"message": "{{fieldName}} is required", | |
"parameters": [ | |
{ | |
"name": "fieldName", | |
"value": "" | |
} | |
] | |
}, | |
{ | |
"key": "fieldEqual", | |
"message": "{{fieldName}} should match {{referenceValue}}", | |
"parameters": [ | |
{ | |
"name": "fieldName", | |
"value": "" | |
}, | |
{ | |
"name": "referenceValue", | |
"value": "" | |
} | |
] | |
} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"valid": false, | |
"errors": [ | |
{ | |
"key": "fieldRequired", | |
"parameters": { | |
"fieldName": "TheFirstField" | |
} | |
}, | |
{ | |
"key": "fieldRequired", | |
"parameters": { | |
"fieldName": "TheSecondField" | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment