Skip to content

Conversation

EwenQuim
Copy link
Member

@EwenQuim EwenQuim commented Dec 11, 2024

The goal here is to make RegisterOpenAPIOperation independent from fuego.Server. Doing so, we might reuse this function for other routers, like Gin #241 or Echo.

RegisterOpenAPIOperation only needed OpenAPI details, not the whole router anyway! What we had before was a demonstration of implementation leak. With a Server struct that have many fields, we are locking ourselves where it wasn't necessary.

This PR is backward-compatible! No test have change except for semantics. OMG I love Go for making this refactoring so easy...

@EwenQuim EwenQuim force-pushed the decorrelates-openapi-registration-from-server branch 2 times, most recently from fcbee50 to 2697662 Compare December 11, 2024 00:41
@EwenQuim EwenQuim force-pushed the decorrelates-openapi-registration-from-server branch from 2697662 to dadcb76 Compare December 11, 2024 08:41
@EwenQuim EwenQuim force-pushed the decorrelates-openapi-registration-from-server branch 2 times, most recently from 71bb9cb to c833e87 Compare December 12, 2024 08:39
@EwenQuim EwenQuim force-pushed the decorrelates-openapi-registration-from-server branch from ce950ef to 0ed8902 Compare December 12, 2024 08:52
@EwenQuim EwenQuim marked this pull request as ready for review December 12, 2024 08:53
@EwenQuim
Copy link
Member Author

Ready for review

@EwenQuim EwenQuim merged commit fe68933 into main Dec 13, 2024
5 checks passed
@EwenQuim EwenQuim deleted the decorrelates-openapi-registration-from-server branch December 13, 2024 18:24
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.

3 participants