Commit 2d98709
fix(theme): guard against unknown parameter
Parameters with non-OAS3 `in` values (e.g. `formData` from OAS2 specs)
would cause a page crash since the params map only keys on the four valid
OAS3 locations (path, query, header, cookie). Use optional chaining to
skip unknown values gracefully instead of throwing.
Fixes #1359
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>in values to prevent crash (#1360)1 parent 1f62529 commit 2d98709
2 files changed
+2
-2
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| |||
0 commit comments