Skip to content

feat!: Fix meta service domains schema structure - #3249

Merged
gmlewis merged 1 commit into
google:masterfrom
lrstanley:fix/issue-3248
Aug 26, 2024
Merged

feat!: Fix meta service domains schema structure#3249
gmlewis merged 1 commit into
google:masterfrom
lrstanley:fix/issue-3248

Conversation

@lrstanley

@lrstanleylrstanley commented Aug 22, 2024

Copy link
Copy Markdown
Contributor

Fixes: #3248.

BREAKING CHANGE: APIMeta.Domains changed from map to struct.

This should at least be a tiny bit less prone to breaking, as it only accounts for existing schema with that API, and future additions should silently be ignored (unless GitHub breaks the contract, which they didn't really do in this scenario).

@lrstanley
lrstanley marked this pull request as draft August 22, 2024 15:20
@gmlewisgmlewis changed the title breaking: fix meta service domains schema structurefeat!: Fix meta service domains schema structureAug 22, 2024
@gmlewisgmlewis added the Breaking API Change PR will require a bump to the major version num in next release. Look here to see the change(s). label Aug 22, 2024
@lrstanley
lrstanley marked this pull request as ready for review August 22, 2024 15:21
@gmlewisgmlewis added the NeedsReview PR is awaiting a review before merging. label Aug 22, 2024
- closes#3248
Signed-off-by: Liam Stanley <liam@liam.sh>
@gmlewis

Copy link
Copy Markdown
Collaborator

(No need to force-push PRs in this repo, @lrstanley - as we always squash and merge.)

@codecov

codecovBot commented Aug 22, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.95%. Comparing base (2b8c7fa) to head (af7c7fc).
Report is 103 commits behind head on master.

Additional details and impacted files
@@ Coverage Diff @@## master #3249 +/- ##
==========================================
- Coverage 97.72% 92.95% -4.78% 
==========================================
Files 153 171 +18 Lines 13390 11646 -1744 ==========================================
- Hits 13085 10825 -2260 - Misses 215 727 +512 - Partials 90 94 +4 

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gmlewisgmlewis left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thank you, @lrstanley !
LGTM.

Awaiting second LGTM+Approval from any other contributor to this repo before merging.

@tomfeigintomfeigin left a comment

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.

LGTM

@gmlewis

Copy link
Copy Markdown
Collaborator

Thank you, @tomfeigin !
Merging.

@gmlewisgmlewis removed the NeedsReview PR is awaiting a review before merging. label Aug 26, 2024
@gmlewis
gmlewis merged commit da7d014 into google:masterAug 26, 2024
@gmlewisgmlewis mentioned this pull request Feb 26, 2026
jlaportebot added a commit to jlaportebot/go-github that referenced this pull request Jun 28, 2026
Fixes: google#3248.
BREAKING CHANGE: `APIMeta.Domains` changed from `map` to `struct`.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Breaking API ChangePR will require a bump to the major version num in next release. Look here to see the change(s).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MetaService.Get fails because the schema of the JSON in the API response is different from the expected in APIMeta.Domains type

3 participants

@lrstanley@gmlewis@tomfeigin