Skip to content

Codegen: add fiber v3 support #1937

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

kerak19
Copy link

@kerak19 kerak19 commented Mar 23, 2025

This PR adds Fiber v3 support to oapi-codegen.

While Fiber v3 is not yet production ready per link, any code changes concerning oapi code generation should've been easy to manage.

Added petstore-expanded and minimal-server examples.
Updated Readme to contain Fiber v3 paragraph.

kerak19 added 5 commits March 23, 2025 21:47
Important change: the GenerateImports now accepts whole configuration, so it can use the information to know which version of package to import.

Currently it's only used for fiber but in the future can be used for any other import with major version increment
@kerak19 kerak19 requested a review from a team as a code owner March 23, 2025 20:58
google.golang.org/protobuf v1.34.1 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

replace github.com/oapi-codegen/fiber-middleware/v2 => github.com/kerak19/fiber-middleware/v2 v2.0.0-20250323205111-59ed66807d2f
Copy link
Author

Choose a reason for hiding this comment

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

Copy link

@jamietanna
Copy link
Member

I'll try and get a review at some point - if Fiber are still pushing out breaking changes to v3 I'd be concerned that this may mean we'll have more work keeping this working 🤔

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.

2 participants