Skip to content

fix: error handling added for security scheme issues#279

Merged
Prashansa-K merged 2 commits intomainfrom
fix/segfault-o2k
Nov 10, 2025
Merged

fix: error handling added for security scheme issues#279
Prashansa-K merged 2 commits intomainfrom
fix/segfault-o2k

Conversation

@Prashansa-K
Copy link
Contributor

@Prashansa-K Prashansa-K commented Nov 5, 2025

Without the present changes, we were getting a segmentation fault when
security-scheme returned was nil.
Thus, added error handling and test-cases for different security-scheme related scenarios.

FTI: https://konghq.atlassian.net/browse/FTI-7043

@codecov-commenter
Copy link

Codecov Report

❌ Patch coverage is 71.42857% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 69.62%. Comparing base (64b7bc4) to head (3ceb4c3).

Files with missing lines Patch % Lines
openapi2kong/openapi2kong.go 71.42% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #279      +/-   ##
==========================================
- Coverage   70.26%   69.62%   -0.64%     
==========================================
  Files          24       24              
  Lines        3541     2736     -805     
==========================================
- Hits         2488     1905     -583     
+ Misses        874      656     -218     
+ Partials      179      175       -4     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Prashansa-K Prashansa-K merged commit 8ac4652 into main Nov 10, 2025
5 checks passed
@Prashansa-K Prashansa-K deleted the fix/segfault-o2k branch November 10, 2025 05:25
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