Commit 0dcbae0
Hide the servers block too, now that nothing sends a request
With the Try it out buttons gone, the block is a dropdown and two text fields
whose only effect is to recompute a URL and print it. Nothing sends that URL
anywhere, so it just invites a reader to edit fields that do nothing.
Nothing readable goes with it. Swagger UI renders neither a server's
description nor its variables', so the note on `port` - Android's 8080, iOS's
80, the walk to 8081, `remoteAccessPort` - has never actually appeared on the
page; the block showed only the URL template and two bare labels. The page now
carries the address shape and the two default ports in the admonition, where a
reader will see them, and links to the introduction for the rest.
`servers:` stays in openapi.yaml - it is part of the specification whether or
not Swagger UI draws it - with a comment recording that its descriptions reach
no reader, so nobody writes documentation there again expecting them to.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent a90d8ac commit 0dcbae0
3 files changed
Lines changed: 25 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
91 | 97 | | |
92 | 98 | | |
93 | 99 | | |
| |||
0 commit comments