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: Fix duplicate parameter checking when all parameters are defined at the path level #116

Merged
merged 1 commit into from
Nov 25, 2019

Conversation

mkistler
Copy link
Contributor

This PR fixes a bug with the logic of the duplicate path parameter checks that causes an exception when an operation has no parameters. I've added a test for this case as well.

@codecov
Copy link

codecov bot commented Nov 22, 2019

Codecov Report

Merging #116 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #116   +/-   ##
=======================================
  Coverage   92.37%   92.37%           
=======================================
  Files          55       55           
  Lines        1968     1968           
=======================================
  Hits         1818     1818           
  Misses        150      150
Impacted Files Coverage Δ
.../validation/2and3/semantic-validators/paths-ibm.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4d58a82...19033a0. Read the comment docs.

Copy link
Member

@dpopp07 dpopp07 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've never thought to use the Boolean object wrapper that way - nice!

Looks good 👍

@mkistler mkistler merged commit f40bd6f into master Nov 25, 2019
@mkistler mkistler deleted the mdk/fix branch November 25, 2019 18:44
dpopp07 pushed a commit that referenced this pull request Nov 25, 2019
## [0.15.2](v0.15.1...v0.15.2) (2019-11-25)

### Bug Fixes

* Fix duplicate parameter checking when all parameters are defined at the path level ([#116](#116)) ([f40bd6f](f40bd6f))

### Reverts

* Back out duplicated tests for duplicate path parameter rule ([#115](#115)) ([4d58a82](4d58a82))
@dpopp07
Copy link
Member

dpopp07 commented Nov 25, 2019

🎉 This PR is included in version 0.15.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants