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

fix: parameter.required field coming as nil #205

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

Prashansa-K
Copy link
Contributor

With recent deck changes that attemp to skip
filling defaults before sending to CP, the cmd
deck file openapi2kong had issues with the required field coming up as null, if it was not filled by
the user. With this change, we fill it with
false by default.

Fixes: #203

With recent deck changes that attemp to skip
filling defaults before sending to CP, the cmd
deck file openapi2kong had issues with the required
field coming up as null, if it was not filled by
the user. With this change, we fill it with
false by default.

Fixes: #203
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 50.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 68.15%. Comparing base (66febca) to head (84df2b5).

Files with missing lines Patch % Lines
openapi2kong/validator.go 50.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #205      +/-   ##
==========================================
- Coverage   68.19%   68.15%   -0.05%     
==========================================
  Files          24       24              
  Lines        2550     2553       +3     
==========================================
+ Hits         1739     1740       +1     
- Misses        643      644       +1     
- Partials      168      169       +1     

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

@Prashansa-K
Copy link
Contributor Author

@GGabriele Could you please check this PR?
I need to release this change and merge with deck today to fix a P0 issue.

@Prashansa-K Prashansa-K merged commit 256107c into main Sep 12, 2024
3 checks passed
@Prashansa-K Prashansa-K deleted the fix/required-field-issue branch September 12, 2024 12:33
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.

x-kong-plugin-request-validator required field is null
3 participants