Commit 8d1d1ed
committed
fix(oas3): show request body description for file upload content types
When a request body uses a content type like application/octet-stream
that triggers file upload mode, the description from the requestBody
object was not being displayed. Instead, only the "Example values are
not available" message was shown (in non-execute mode) or just the
file input (in execute mode).
This renders the requestBody description above the file input or
the example-not-available message, consistent with how descriptions
are shown for other content types.
Fixes #56371 parent 3608eaa commit 8d1d1ed
1 file changed
Lines changed: 14 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
118 | | - | |
119 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
120 | 125 | | |
121 | 126 | | |
122 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
123 | 133 | | |
124 | 134 | | |
125 | 135 | | |
| |||
0 commit comments