Skip to content

feat: Upgrades client and exposes API models#185

Merged
obalunenko merged 2 commits into
masterfrom
184-models-in-internal-package-error
Jun 17, 2026
Merged

feat: Upgrades client and exposes API models#185
obalunenko merged 2 commits into
masterfrom
184-models-in-internal-package-error

Conversation

@obalunenko

Copy link
Copy Markdown
Owner

Upgrades the underlying go-openapi client to version v0.32.3+, introducing explicit context.Context support for all API operations.

  • Allows for better control over request lifecycles, including timeouts and cancellation.
  • Refactors internal go-openapi/swag imports to use more granular sub-packages (conv, jsonutils, stringutils, typeutils).

Publicly exposes generated Strava API models by aliasing them into a new top-level models package.

  • Addresses previous issues related to models being packaged internally, improving usability.

Closes #184

The OpenAPI generated models were previously located in an `internal` package, restricting their visibility and preventing direct usage by external consumers of the library.

This change moves all generated model types to a top-level `models` package using type aliases. This makes them publicly accessible, allowing applications using this client library to directly interact with Strava API model structures.

Resolves #184
@obalunenko obalunenko self-assigned this Jun 17, 2026
@obalunenko obalunenko merged commit b67a172 into master Jun 17, 2026
4 checks passed
@obalunenko obalunenko deleted the 184-models-in-internal-package-error branch June 17, 2026 23:19
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.

Models in internal package error

1 participant