Commit 358c91d
ApiItem previously only prefilled parameter values from `schema.default`.
For required parameters, the OpenAPI spec discourages `default` (it is a
server-side fallback, not a client-supplied value), so authors typically
rely on `example`, `schema.example`, or `examples`. None of these were
being consulted, leaving required inputs blank.
Extend the prefill order to fall through:
schema.default -> example -> schema.example -> first of examples
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 72f1187 commit 358c91d
1 file changed
Lines changed: 15 additions & 3 deletions
Lines changed: 15 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
127 | 139 | | |
128 | | - | |
129 | | - | |
| 140 | + | |
| 141 | + | |
130 | 142 | | |
131 | 143 | | |
132 | 144 | | |
| |||
0 commit comments