Skip to content

Commit 864ae06

Browse files
committed
docs(rpc): flag runtime schema enforcement as breaking
1 parent b10868d commit 864ae06

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

docs/guide/rpc.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ defineRpcFunction({
9494

9595
Prefer a single object argument (`args: [v.object({ ... })]`) over positional args — property names are self-describing and agents/IDEs work best with object shapes.
9696

97+
> [!WARNING]
98+
> Declared `args`/`returns` schemas are enforced at runtime — a call whose arguments, or a handler whose return value, fail the schema is rejected with `DF0043` / `DF0044`. Make sure each schema matches what the function actually accepts and returns; a schema stricter than reality will now reject calls that previously ran.
99+
97100
### Setup vs handler
98101

99102
Two ways to wire a handler:

0 commit comments

Comments
 (0)