fix!: Correct `HostedRunner` image struct fields and JSON tags to match API by austenstone · Pull Request #4104 · google/go-github
added 3 commits
November 13, 2025 07:53… API Fix incorrect JSON field names on HostedRunner and HostedRunnerImageDetail structs that don't match the GitHub API response, and rename the Go struct fields to align with the API spec. - HostedRunner: ImageDetails/image_details -> Image/image - HostedRunnerImageDetail: SizeGB/size_gb -> Size/size BREAKING CHANGE: Renamed Go struct fields (ImageDetails -> Image, SizeGB -> Size) and their JSON tags. The old JSON tags never matched the API, so this is effectively a bugfix. Supersedes google#4102
austenstone
changed the title
fix!: Correct HostedRunner image struct fields and JSON tags to match API
fix: Correct HostedRunner image struct fields and JSON tags to match API
gmlewis
changed the title
fix: Correct
fix!: Correct HostedRunner image struct fields and JSON tags to match APIHostedRunner image struct fields and JSON tags to match API
This file contains hidden or 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