Skip to content

Swagger-ui not able to parse host for IPv6 format #2089

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

Closed
anchaltyagi opened this issue Apr 13, 2016 · 1 comment
Closed

Swagger-ui not able to parse host for IPv6 format #2089

anchaltyagi opened this issue Apr 13, 2016 · 1 comment

Comments

@anchaltyagi
Copy link

swagger-ui version : 2.1.8
a swagger file reproducing the issue: swagger-client.js

Description: We are using swagger-ui for our REST APIs. It was working fine when we were in IPv4. We recently had to change to IPV6 and UI breaks there. While debugging we found that swagger-client.js is not able to filter out the host name from IPV6 format.
Example: [fc00:10:112:54::246] is the IP address for my host when I try to find the host name in request object its filtered out as host: "[fc00".
I feel somewhere in logic when host name is taken from url ":" is used as separator for host and port, but in IPV6 ":" can be used in address also.

Please help us by providing support to IPV6 address format also.

@fehguy
Copy link
Contributor

fehguy commented Apr 15, 2016

Yes, this has been added at OAI/OpenAPI-Specification#489 for the next version of the specification

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants