parent
9a86abc155
commit
87856371a0
|
|
@ -61,7 +61,7 @@ func SendError(
|
|||
// sub-problems
|
||||
prob.Type = probs.ProblemType(namespace) + prob.Type
|
||||
for i := range prob.SubProblems {
|
||||
prob.SubProblems[i].Type = probs.ProblemType(namespace) + prob.Type
|
||||
prob.SubProblems[i].Type = prob.Type
|
||||
}
|
||||
problemDoc, err := json.MarshalIndent(prob, "", " ")
|
||||
if err != nil {
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ func TestSendErrorSubProblemNamespace(t *testing.T) {
|
|||
"status": 400,
|
||||
"subproblems": [
|
||||
{
|
||||
"type": "namespace:test:namespace:test:malformed",
|
||||
"type": "namespace:test:malformed",
|
||||
"detail": "dfoop :: nop",
|
||||
"status": 400,
|
||||
"identifier": {
|
||||
|
|
@ -53,7 +53,7 @@ func TestSendErrorSubProblemNamespace(t *testing.T) {
|
|||
}
|
||||
},
|
||||
{
|
||||
"type": "namespace:test:namespace:test:malformed",
|
||||
"type": "namespace:test:malformed",
|
||||
"detail": "dfoop :: nah",
|
||||
"status": 400,
|
||||
"identifier": {
|
||||
|
|
|
|||
Loading…
Reference in New Issue