Commit aa6bcad
committed
Fix detect 400: JSON-clean result (strip undefined for Schema.Unknown encoder)
The HttpApi/MCP Schema.Unknown response encoder rejects explicit `undefined`
nested values as non-JSON. Domains whose auth/mcp objects had any undefined
optional field (e.g. sentry, modelcontextprotocol.io: no registration_endpoint)
returned 400. JSON-clean the detect result at the runDetect boundary.1 parent 639dc61 commit aa6bcad
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
34 | 36 | | |
35 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
0 commit comments