Skip to content
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

feat: add tags to the Server (i.e Group) level #85

Merged
merged 1 commit into from
Mar 21, 2024

Conversation

dylanhitt
Copy link
Collaborator

@dylanhitt dylanhitt commented Mar 21, 2024

Closes #62

I put the test where I thought they made sense the most. I added a test for TestRegister to specifically ensure routes have the last say. Let me know what you think. Happy to move things around, but I believe I have most things covered.

Cheers

@dylanhitt dylanhitt changed the title WIP: feat: add tags to the Server (i.e Group) level feat: add tags to the Server (i.e Group) level Mar 21, 2024
Copy link
Member

@EwenQuim EwenQuim left a comment

Choose a reason for hiding this comment

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

I will finish to look at it tomorrow. Thanks for the work!

@@ -45,6 +46,8 @@ type Server struct {
// For example, it allows OPTIONS /foo even if it is not declared (only GET /foo is declared).
corsMiddleware func(http.Handler) http.Handler

tags []string
Copy link
Member

Choose a reason for hiding this comment

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

Add a comment to explain that it is OpenAPI tags

options.go Outdated Show resolved Hide resolved
@dylanhitt dylanhitt force-pushed the feat/group-tags branch 2 times, most recently from 8606586 to 61cf0f9 Compare March 21, 2024 01:26
@EwenQuim EwenQuim changed the base branch from main to group-tags March 21, 2024 20:59
@EwenQuim EwenQuim merged commit 1086899 into go-fuego:group-tags Mar 21, 2024
1 check passed
@dylanhitt dylanhitt deleted the feat/group-tags branch March 21, 2024 21:06
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.

Custom group tags
2 participants