-
Notifications
You must be signed in to change notification settings - Fork 255
Open
Labels
kind/enhancementNew feature or requestNew feature or requestpriority/majorstatus/pinnedPrevents the stale bot from closing the issuePrevents the stale bot from closing the issue
Description
When a value fails validation, the error message is returned in the body. When multiple errors occur, they are concatenated in the body. This makes parsing very difficult in the applications using this:
Getting:
500
body: "Value '6144' for configuration property 'memory' is invalid, reason: requires memory in MiB >= 9216\n" +
"Value '19' for configuration property 'disk-size' is invalid, reason: requires disk size in GiB >= 31\n"
Is not the same as:
500
[
{
"value":"memory",
"default":"9216",
"request":"6144",
"reason":"invalid",
"requires":">= 9216"
},
{
"value":"disk-size",
"default":"31",
"request":"19",
"reason":"invalid",
"requires":">= 31"
}
]Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind/enhancementNew feature or requestNew feature or requestpriority/majorstatus/pinnedPrevents the stale bot from closing the issuePrevents the stale bot from closing the issue