Commit 1f5fa16
committed
docs(core): clarify schema-bundle overload validates only (no outbound transforms)
Reverts 0e053fe. The params schema in the {params, result} bundle is a
type guard, not a transformer: the value the caller passes is sent as-is,
matching v1 and request() behavior. parsed.data is intentionally unused
on the outbound path — validation catches shape errors before the
round-trip, but transforms/defaults are an inbound concern (parsing
untrusted wire data), not an outbound one (sending trusted local data).
Adds JSDoc note and a test asserting params are sent verbatim.1 parent 0e053fe commit 1f5fa16
3 files changed
+13
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
1143 | 1143 | | |
1144 | 1144 | | |
1145 | 1145 | | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
1146 | 1150 | | |
1147 | 1151 | | |
1148 | 1152 | | |
1149 | | - | |
| 1153 | + | |
1150 | 1154 | | |
1151 | 1155 | | |
1152 | 1156 | | |
| |||
1168 | 1172 | | |
1169 | 1173 | | |
1170 | 1174 | | |
1171 | | - | |
1172 | 1175 | | |
1173 | 1176 | | |
1174 | 1177 | | |
| |||
1186 | 1189 | | |
1187 | 1190 | | |
1188 | 1191 | | |
1189 | | - | |
| 1192 | + | |
| 1193 | + | |
1190 | 1194 | | |
1191 | 1195 | | |
1192 | 1196 | | |
1193 | | - | |
| 1197 | + | |
1194 | 1198 | | |
1195 | 1199 | | |
1196 | 1200 | | |
| |||
1207 | 1211 | | |
1208 | 1212 | | |
1209 | 1213 | | |
1210 | | - | |
1211 | 1214 | | |
1212 | 1215 | | |
1213 | 1216 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | 23 | | |
29 | 24 | | |
30 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
| 195 | + | |
196 | 196 | | |
197 | | - | |
| 197 | + | |
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
204 | | - | |
| 203 | + | |
| 204 | + | |
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| |||
0 commit comments