-
Notifications
You must be signed in to change notification settings - Fork 118
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
SwaggerMappingError when trying to load spec with root path. #239
Comments
So I discovered I have to add a "tag" and "operationId", then reference it by:
pretty confusing, not sure if thats documented anywhere. Perhaps we could add this to the documentation. |
Can you post your full traceback and precisely what line of code produces it? I think this isn't the first time working with semi-complete specs caused a low-level error....shouldn't spec validation be catching this? |
|
Reading the specs I haven't found any constraint about the presence of the |
I'm trying to write a spec that will perform a POST on a url like "domain.com/", note that the url is at the root.
In the online Swagger Editor, this schema correctly validates and performs a POST, but when using bravado, I'm unable to load the schema json.
I get "bravado_core.exception.SwaggerMappingError: Could not extract resource name from path /"
Here is an example part of my 2.0 spec:
...
...
In the online swagger editor, this will correctly POST to "https://example.com/", but I get an error trying to load the spec in bravado. My code is on:
bravado==7.0.0
bravado-core==4.0.0
The text was updated successfully, but these errors were encountered: