-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Swagger Resolution Errors #87
Comments
Thank you for this! It is true that validation and dereferencing do not have to happen at the same time. In fact, this is also how it's implemented - the validation function is just called internally. I think that makes for a very easy change. As to the bug: the spec could help, yes! Also, if/when I have time, #81 would help with locating the error. In the past, people passed malformed specs to get this kind of problem, but that doesn't mean it has to be the case here! |
great, i will create the test branch and maybe add a PR if I figure it out 😉 |
@jfinkhaeuser, i added a PR with the Kubernetes swagger specs and a failing test. |
Added failing test for issue #87
Expected Behaviour
Minimal Example Spec
Actual Behaviour
Steps to Reproduce
Environment
Hi there, and first off thanks for this resolver!
I'm maintaining another library that relies on Prance as a derferencer. It works well in most cases, but I think I encountered a bug. I'm testing our library (https://github.com/snok/drf-openapi-tester) against various specs, and now I'm trying to test it against the kubernetes swgger 2.0 docs:, which can be found here: https://raw.githubusercontent.com/kubernetes/kubernetes/master/api/openapi-spec/swagger.json
It seems that this spec cannot be resolved at present because instead of a url what is passed to the following function is a dictionary
{type: string}
:I got to this point in debugging it.
According to the intellij debugger
absurl
was called with two parameters:If you want I can add a json copy of the kubernetes spec to the repo and have it fail in a test if that would help :).
@jfinkhaeuser
The text was updated successfully, but these errors were encountered: