fix: Added a flag to generate header based routes only when needed#292
Merged
shivaygupta-dotcom merged 2 commits intomainfrom Apr 30, 2026
Merged
fix: Added a flag to generate header based routes only when needed#292shivaygupta-dotcom merged 2 commits intomainfrom
shivaygupta-dotcom merged 2 commits intomainfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #292 +/- ##
=======================================
Coverage 64.98% 64.98%
=======================================
Files 25 25
Lines 3119 3119
=======================================
Hits 2027 2027
Misses 881 881
Partials 211 211 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
a046fc8 to
144cdb9
Compare
144cdb9 to
4608a61
Compare
| // Generate separate routes for each header enum even if required: false | ||
| TreatAllHeadersAsRequired bool | ||
| // Skip generation of separate routes for header parameter enums | ||
| SkipHeaderRoutes bool |
Contributor
There was a problem hiding this comment.
Can we call this SkipRouteByHeader instead? This will need to be added as a CLI flag in deck as well - --skip-route-by-header
harshadixit12
approved these changes
Apr 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GH: Kong/deck#2037
FTI: https://konghq.atlassian.net/browse/FTI-7492
Summary:
We had added a feature in decK version v1.52.0, where If user has declared header parameters, and their values (in an enum) in the OAS - we started including those in the generated routes.
Recently we got above FTI, where one of the customer, don't want headers to be included in the generated routes.
So we have introduced a new cli flag
skip-header-routes, to skip headers in the routes.