Skip to content

fix: update GoogleJsonError object to accomodate all fields in Invalid parameter exception - #1783

Merged
gcf-merge-on-green[bot] merged 3 commits into
masterfrom
fix-google-json-error
May 7, 2021
Merged

gcf-merge-on-green[bot] merged 3 commits into
masterfrom
fix-google-json-error

Conversation

@Neenu1995

@Neenu1995 Neenu1995 commented May 4, 2021 •

Copy link
Copy Markdown
Contributor

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.

@Neenu1995
Neenu1995 requested a review from a team May 4, 2021 00:54
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label May 4, 2021
}

public List<ParameterViolations> getParameterViolations() {
return parameterViolations;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exposes mutable private state, needs a defensive copy

return parameterViolations;
}

public void setParameterViolations(List<ParameterViolations> parameterViolations) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exposes mutable private state

return details;
}

public void setDetails(List<Details> details) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exposes mutable private state

this.message = message;
}

public List<Details> getDetails() {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exposes mutable private state

@Neenu1995
Neenu1995 requested a review from elharo May 6, 2021 22:10
@Neenu1995 Neenu1995 added the automerge Merge the pull request once unit tests and other checks pass. label May 7, 2021
@gcf-merge-on-green
gcf-merge-on-green Bot merged commit 94c4570 into master May 7, 2021
@gcf-merge-on-green
gcf-merge-on-green Bot deleted the fix-google-json-error branch May 7, 2021 18:38
@gcf-merge-on-green gcf-merge-on-green Bot removed the automerge Merge the pull request once unit tests and other checks pass. label May 7, 2021
gcf-merge-on-green Bot pushed a commit that referenced this pull request May 10, 2021
🤖 I have created a release \*beep\* \*boop\*
---
### [1.31.5](https://www.github.com/googleapis/google-api-java-client/compare/v1.31.4...v1.31.5) (2021-05-10)


### Bug Fixes

* release scripts from issuing overlapping phases ([#1769](https://www.github.com/googleapis/google-api-java-client/issues/1769)) ([3174ff9](https://www.github.com/googleapis/google-api-java-client/commit/3174ff9ddf0c7428b90bff766c6b18bf17d1feac))
* remove deprecated parent pom ([#1785](https://www.github.com/googleapis/google-api-java-client/issues/1785)) ([5da3355](https://www.github.com/googleapis/google-api-java-client/commit/5da335518ff5076ea5dd4f40fd0494330458296c))
* update GoogleJsonError object to accomodate all fields in Invalid parameter exception ([#1783](https://www.github.com/googleapis/google-api-java-client/issues/1783)) ([94c4570](https://www.github.com/googleapis/google-api-java-client/commit/94c4570e16324b4c654d4ec3f0f940926064d955))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants