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: don't crash when parameter is missing required "in" property #308

Merged
merged 1 commit into from
Jul 14, 2021

Conversation

dpopp07
Copy link
Member

@dpopp07 dpopp07 commented Jul 13, 2021

Right now, we assume that parameters will have all required properties. This results
in the code crashing ungracefully if the "in" property is missing. This PR corrects
that. Missing "in" properties are already caught by spectral if there aren't other
issues with the property.

Resolves #307

Right now, we assume that parameters will have all required properties. This results
in the code crashing ungracefully if the "in" property is missing. This PR corrects
that. Missing "in" properties are already caught by spectral if there aren't other
issues with the property.
@codecov
Copy link

codecov bot commented Jul 13, 2021

Codecov Report

Merging #308 (c76e2e0) into main (b926ba0) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #308   +/-   ##
=======================================
  Coverage   92.00%   92.00%           
=======================================
  Files          73       73           
  Lines        2377     2377           
  Branches      605      606    +1     
=======================================
  Hits         2187     2187           
  Misses        157      157           
  Partials       33       33           
Impacted Files Coverage Δ
.../validation/2and3/semantic-validators/paths-ibm.js 100.00% <100.00%> (ø)

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 b926ba0...c76e2e0. Read the comment docs.

Copy link
Contributor

@barrett-schonefeld barrett-schonefeld left a comment

Choose a reason for hiding this comment

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

Looks good!

@dpopp07 dpopp07 merged commit 8bf7df5 into main Jul 14, 2021
@dpopp07 dpopp07 deleted the dp/fix-307 branch July 14, 2021 14:07
ibm-devx-sdk pushed a commit that referenced this pull request Jul 14, 2021
## [0.46.2](v0.46.1...v0.46.2) (2021-07-14)

### Bug Fixes

* don't crash when parameter is missing required "in" property ([#308](#308)) ([8bf7df5](8bf7df5))
@ibm-devx-sdk
Copy link

🎉 This PR is included in version 0.46.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.

Bad path ref parameter breaks the linter
3 participants