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: fixed req-validator config generation when both body and param schema are empty. #244

Merged
merged 1 commit into from
Jan 20, 2025

Conversation

Prashansa-K
Copy link
Contributor

@Prashansa-K Prashansa-K commented Jan 16, 2025

In the above case, we wish to skip the config
generation. Due to improper checking of the
generated parameter schema, it was not
getting assigned nil, as it is supposed to.

This change corrects the check to length
based-checking and improved the test to
validate the same.

For: #241

…chema are empty.

In the above case, we wish to skip the config
generation. Due to improper checking of the
generated parameter schema, it was not
getting assigned nil, as it is supposed to.

This change corrects the check to length
based-checking and improved the test to
validate the same.
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.23%. Comparing base (4733c11) to head (ea69382).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #244   +/-   ##
=======================================
  Coverage   69.23%   69.23%           
=======================================
  Files          24       24           
  Lines        3361     3361           
=======================================
  Hits         2327     2327           
  Misses        862      862           
  Partials      172      172           

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

@Prashansa-K Prashansa-K requested a review from Tieske January 16, 2025 07:38
@Prashansa-K Prashansa-K merged commit 6740cab into main Jan 20, 2025
3 checks passed
@Prashansa-K Prashansa-K deleted the fix/empty-param-schemas branch January 20, 2025 03:40
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