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

feat(server): migrate nested paths may be root paths rule to use context object to support OpenAPI 3 #829

Merged

Conversation

maxim-tschumak
Copy link
Contributor

Related to #714

@codecov-io
Copy link

codecov-io commented Sep 7, 2018

Codecov Report

Merging #829 into master will increase coverage by 0.03%.
The diff coverage is 80%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #829      +/-   ##
============================================
+ Coverage     84.91%   84.95%   +0.03%     
- Complexity      902      904       +2     
============================================
  Files           171      171              
  Lines          2553     2553              
  Branches        392      392              
============================================
+ Hits           2168     2169       +1     
  Misses          151      151              
+ Partials        234      233       -1
Impacted Files Coverage Δ Complexity Δ
...ally/rule/zalando/NestedPathsMayBeRootPathsRule.kt 83.33% <80%> (+16.66%) 9 <8> (+2) ⬆️

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 4e6cdaa...053c3c6. Read the comment docs.

val spec = """
openapi: 3.0.1
paths:
pets/: {}
Copy link
Member

Choose a reason for hiding this comment

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

Missing check for /pets/dogs. This is a legal pattern and should be interpreted as top level resource.

val spec = """
openapi: 3.0.1
paths:
"/countries/{country-id}/cities/{city-id}": {}
Copy link
Member

Choose a reason for hiding this comment

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

We should also check for something like /countries/{country-id}/populated/cities/{city-id}.

@maxim-tschumak
Copy link
Contributor Author

@tkrop @ddufourboivin-zalando please have another look

@ghost
Copy link

ghost commented Sep 10, 2018

👍

@maxim-tschumak
Copy link
Contributor Author

👍

@maxim-tschumak maxim-tschumak merged commit 1ff98f9 into master Sep 10, 2018
@maxim-tschumak maxim-tschumak deleted the 714-migrate-nested-paths-may-be-root-paths-rule branch September 10, 2018 09:49
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.

None yet

3 participants