Commit ce6cfda
fix(types): drop safesearch schema default so omitted value uses instance default (BUG-006)
Post-review (Codacy + Copilot): the safesearch schema's `default: "0"` can
cause some MCP clients to auto-fill "0" and override the operator/instance
default (SEARXNG_DEFAULT_SAFESEARCH or the SearXNG instance default), which
contradicts the documented "default: instance setting" behavior. Remove the
schema default — an omitted safesearch now reaches the server as undefined and
the instance/operator default applies. Tests updated to assert no default is
present. type:"string" and enum:["0","1","2"] unchanged.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Codex <noreply@openai.com>1 parent 4a54fc2 commit ce6cfda
3 files changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
| 167 | + | |
167 | 168 | | |
168 | 169 | | |
169 | 170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
| 87 | + | |
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
220 | 219 | | |
221 | 220 | | |
222 | 221 | | |
| |||
0 commit comments