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 bug with path-level vendor extensions. #95

Merged
merged 1 commit into from
Aug 3, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions bravado_core/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ def build_resources(swagger_spec):
path_spec = deref(path_spec)
for http_method, op_spec in iteritems(path_spec):
op_spec = deref(op_spec)
# parameters that are shared across all operations for
# a given path are also defined at this level - we
# vendor extensions and parameters that are shared across all
# operations for a given path are also defined at this level - we
# just need to skip over them.
if http_method == 'parameters':
if http_method.startswith('x-') or http_method == 'parameters':
Copy link
Contributor

Choose a reason for hiding this comment

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

Would be awesome if you could add a unit test for this here.

continue

op = Operation.from_spec(swagger_spec, path_name, http_method,
Expand Down