X Tutup
Skip to content

Update return type of Exception::getErrors() to its correct structure#2271

Merged
bshaffer merged 2 commits intogoogleapis:mainfrom
mrtus:patch-1
Jun 7, 2022
Merged

Update return type of Exception::getErrors() to its correct structure#2271
bshaffer merged 2 commits intogoogleapis:mainfrom
mrtus:patch-1

Conversation

@mrtus
Copy link
Contributor

@mrtus mrtus commented Jun 2, 2022

After the latest update static analysis tools hinted on this wrongly typed structure.

The returned structure of Exception::getErrors() is an array with a map of keys and values.

The change was introduced here #2252

[
    {
        "domain": "global",
        "reason": "authError",
        "message": "Invalid Credentials",
        "locationType": "header",
        "location": "Authorization"
    }
]

The returned errors are an array with a map of keys and values.
```
[
    {
        "domain": "global",
        "reason": "authError",
        "message": "Invalid Credentials",
        "locationType": "header",
        "location": "Authorization"
    }
]
```
@google-cla
Copy link

google-cla bot commented Jun 2, 2022

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@mrtus mrtus marked this pull request as ready for review June 2, 2022 08:59
@mrtus mrtus requested a review from a team June 2, 2022 08:59
@mrtus
Copy link
Contributor Author

mrtus commented Jun 7, 2022

Hi @bshaffer, What is necessary to get this change through? Am I missing some steps that would complete this change request for it to be verified & merged?

@marekdedic
Copy link

Hi,
thank you for your work, this PR solved some "mystery" issues :) Could we please get this released?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

X Tutup