-
Notifications
You must be signed in to change notification settings - Fork 9k
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
Swagger UI not able to handle URI's with the @ symbol #956
Comments
Hi, can you please show a screenshot of the network panel? |
This has been fixed in swagger-ui 2.1.x-M1. Can you please upgrade and report back? |
Hi, you are correct, it is actually not fixed for paths. It is fixed for parameters though. The underlying issue is in the
|
I've confirmed that the "useJQuery: true" workaround does remedy the issue |
It's a bug in SwaggerJS. swagger-api/swagger-js#267. Please look for resolution there. |
I'm working on a JAX-RS suite with endpoints that have an @ symbol in their URI. It appears that swagger is able to generate valid JSON to represent these endpoints, but swagger-ui fails when attempting to read them.
Example swagger JSON output that fails in swagger-ui:
The error displayed in the UI is:
"Unable to read api '@me' from path http://localhost:8585/v1/api/api-docs/people/@me (server returned undefined)"
Note: Swagger-UI works for my suite as long as any endpoints with an @ sign are left out of the generated swagger JSON.
The text was updated successfully, but these errors were encountered: