Skip to content

TypeError: Cannot read property 'operation' of undefined and relative path bug #3151

@julienkosinski

Description

@julienkosinski

Hello,

With this swagger.json : https://gist.github.com/julienkosinski/c0872ed8df120b631c1146adc5d78220.js

With 3.0.12 : When trying to send a request to the API (POST for example), I have this error :

swagger-ui-bundle.js:68397 Uncaught TypeError: Cannot read property 'operation' of undefined at Object.i [as buildRequest] (swagger-ui-bundle.js:68397) at swagger-ui-bundle.js:26026 at swagger-ui-bundle.js:15207 at swagger-ui-bundle.js:9555 at swagger-ui-bundle.js:38005 at Object.r [as executeRequest] (swagger-ui-bundle.js:6562) at swagger-ui-bundle.js:26026 at swagger-ui-bundle.js:15207 at swagger-ui-bundle.js:9555 at swagger-ui-bundle.js:71635

With 3.0.4 : It's working but I need to specify the host (like "host": "127.0.0.1:8080") because relative path isn't working.

Plus, I need to have #2923 fixed for my complete spec.

Thanks :).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions