-
Notifications
You must be signed in to change notification settings - Fork 700
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update GoogleJsonError object to accomodate all fields in Invali…
…d parameter exception (#1783) Fixes b/185405327 Invalid parameter error message does not contain details about which parameter is the invalid one. These fields have been added to GoogleJsonError object.
- Loading branch information
Showing
4 changed files
with
206 additions
and
16 deletions.
There are no files selected for viewing
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
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
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
23 changes: 23 additions & 0 deletions
23
google-api-client/src/test/resources/com/google/api/client/googleapis/json/error.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"error": { | ||
"code": 400, | ||
"message": "The template parameters are invalid.", | ||
"status": "INVALID_ARGUMENT", | ||
"details": [ | ||
{ | ||
"@type": "type.googleapis.com/google.dataflow.v1beta3.InvalidTemplateParameters", | ||
"parameterViolations": [ | ||
{ | ||
"parameter": "safeBrowsingApiKey", | ||
"description": "Parameter didn't match regex '^[0-9a-zA-Z_]+$'" | ||
} | ||
] | ||
}, | ||
{ | ||
"@type": "type.googleapis.com/google.rpc.DebugInfo", | ||
"detail": "test detail" | ||
} | ||
] | ||
} | ||
} | ||
|