Skip to content

[DEVREL-86] Migrate REST client to oapi-codegen generated code (v3)#565

Merged
justinpolygon merged 6 commits intomasterfrom
v3/oapi-codegen-migration
Feb 24, 2026
Merged

[DEVREL-86] Migrate REST client to oapi-codegen generated code (v3)#565
justinpolygon merged 6 commits intomasterfrom
v3/oapi-codegen-migration

Conversation

@justinpolygon
Copy link
Collaborator

Migrate REST client to oapi-codegen generated code (v3)

BREAKING CHANGE: Complete rewrite of the REST layer from hand-written
client to fully auto-generated client using oapi-codegen@v1.1.2.

This brings:
• Full OpenAPI spec compliance (no more drift)
• Automatic support for new endpoints/params
• Cleaner error handling with rest.CheckResponse
• Built-in pagination iterator via rest.NewIteratorFromResponse
• Client options: WithTrace and WithPagination

Migration notes:

  • Import path for generated types is now github.com/massive-com/client-go/v3/rest/gen
  • Client creation changed to rest.NewWithOptions(...)
  • All methods now end in WithResponse and require explicit nil or params struct
  • See updated README.md for examples

@justinpolygon justinpolygon merged commit 3a174a2 into master Feb 24, 2026
12 checks passed
@justinpolygon justinpolygon deleted the v3/oapi-codegen-migration branch February 24, 2026 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant