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

Restore path-searching logic to fix #107 #108

Closed
wants to merge 2 commits into from

Conversation

mohawk2
Copy link
Contributor

@mohawk2 mohawk2 commented Feb 5, 2019

Before the commit referred to in #107, the stack was being searched for the last entry that had the openapi.[op_]path set, and using that. That commit just used the last one, since an array-ref is always true. This PR restores that logic, which then works correctly with Yancy.

@jhthorsen
Copy link
Owner

I can't accept this PR without a test, since there's a high risk I'll revert it in the future by accident.

@mohawk2
Copy link
Contributor Author

mohawk2 commented Feb 9, 2019

Quite right. See new version.

@jhthorsen
Copy link
Owner

Pretty sure this is fixed together with #105.

@jhthorsen jhthorsen closed this Feb 14, 2019
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