Skip to content

Conversation

@obalunenko
Copy link
Owner

No description provided.

Copilot AI review requested due to automatic review settings November 19, 2025 13:34
@obalunenko obalunenko self-assigned this Nov 19, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the generated Strava API client code by regenerating it from the OpenAPI specification. The changes include modernized Go patterns, improved error handling, and API schema updates.

Key changes:

  • Replace deprecated type assertion patterns with errors.As() for better error handling
  • Update interface{} to any (Go 1.18+ idiomatic type)
  • Replace err != io.EOF with !stderrors.Is(err, io.EOF) for proper error comparison
  • Add new DeviceName field to activity models

Reviewed Changes

Copilot reviewed 127 out of 127 changed files in this pull request and generated no comments.

File Description
internal/gen/strava-api-go/models/*.go Updated model validation to use errors.As(), replaced interface{} with any, removed extra blank lines
internal/gen/strava-api-go/client//.go Updated client methods with improved error handling patterns, modernized type usage, and better comments
internal/gen/strava-api-go/models/detailed_activity.go Added new DeviceName field to activity models with proper marshaling/unmarshaling
internal/gen/strava-api-go/models/summary_activity.go Added new DeviceName field to summary activity models

@obalunenko obalunenko merged commit a5697d2 into master Nov 19, 2025
10 checks passed
@obalunenko obalunenko deleted the develop branch November 19, 2025 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants