Commit 25fc6cf
fix(request-schema): suppress ExampleFromSchema when explicit example/examples present
When a MediaTypeObject has an explicit `example` or `examples`, both
ExampleFromSchema and ResponseExample/ResponseExamples would render —
showing duplicate tabs with identical content since sampleResponseFromSchema
picks up schema.example. Suppress ExampleFromSchema when an explicit
media-level example is already provided.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent ffa50df commit 25fc6cf
1 file changed
Lines changed: 4 additions & 0 deletions
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
| 121 | + | |
120 | 122 | | |
121 | 123 | | |
122 | 124 | | |
| |||
202 | 204 | | |
203 | 205 | | |
204 | 206 | | |
| 207 | + | |
| 208 | + | |
205 | 209 | | |
206 | 210 | | |
207 | 211 | | |
| |||
0 commit comments