Commit 93a22f5
committed
fix: validate dataset parameter to prevent search crashes
- Add validation for missing/invalid dataset parameter in search controller
- Return 400 Bad Request instead of crashing with 'Search missing match aggregation'
- Prevents unhandled rejection when /api/search called without valid dataset query parameter
Valid datasets: Document, Project, List, Organization, etc. (all schemaTypes constants)1 parent c1fd674 commit 93a22f5
1 file changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
167 | 178 | | |
168 | 179 | | |
169 | 180 | | |
| |||
0 commit comments