-
Notifications
You must be signed in to change notification settings - Fork 405
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
All ids and names are missing in swagger spec html #104
Comments
This is unrelated to the spec, and the anchors are there. For example - http://swagger.io/specification/#operationObject. |
There's no way to actually use them in the context of the document unless you inspect the source. It's a pretty crummy user experience. Taking the current markup:
It would be great for the anchor wrap the text and have a self-referential href as well:
|
It's a rendering issue, not a spec issue, and should be handled by our rendering engine in the site. The github renderer is different and does it automatically. |
If we are talking about the rendering engine, would it be possible to have it also generate a table of contents? |
@ePaul - unlikely for now, I'm afraid. 3.0 should have it as part of the spec itself (hopefully). |
From @jvivs on April 29, 2016 15:8
Swagger.io is currently the place where most of my coworkers go to read the OpenAPI spec and the linking structure appears to have changed. It's frustrating to have links break, especially when you're trying to link to someone in a document as long as this one: http://swagger.io/specification/
Is it possible to add github-style linking to headers like the markdown file has on github? Also if there are anchors internally in the document, can we have an index or at least put some text in them so they can be found without having to view the source code?
I can open a PR if it is welcome.
Copied from original issue: OAI/OpenAPI-Specification#675
The text was updated successfully, but these errors were encountered: