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(o2k): support x-kong-tags on routes #139

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

Conversation

danielpoonwj
Copy link
Contributor

Purpose

Currently x-kong-tags is only recognized when set on the document level. There are use cases where additional tags need to be set per route. This PR allows x-kong-tags to be set on the operation level as well, which applies it to that specific route.

If x-kong-tags is set on both the document and operation level, the route would contain tags from both sources. There is currently no deduplication.

Refer to the documentation and/or test cases for the syntax and behaviour.

@rspurgeon
Copy link
Contributor

Thank you for the PR @danielpoonwj . Could you rebase and resolve conflicts please? @Tieske can you review when you have time? I will also give it a look.

@rspurgeon rspurgeon requested a review from Tieske January 22, 2024 15:46
@codecov-commenter
Copy link

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (c8b54f1) 68.62% compared to head (a4d56d3) 69.15%.

Files Patch % Lines
openapi2kong/openapi2kong.go 63.63% 2 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #139      +/-   ##
==========================================
+ Coverage   68.62%   69.15%   +0.52%     
==========================================
  Files          22       22              
  Lines        3012     3018       +6     
==========================================
+ Hits         2067     2087      +20     
+ Misses        797      781      -16     
- Partials      148      150       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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