fix: preserve `this` when invoking standard validator (#14943)
authorMira Šerý <athes01@gmail.com>
Thu, 20 Nov 2025 08:53:38 +0000 (09:53 +0100)
committerGitHub <noreply@github.com>
Thu, 20 Nov 2025 08:53:38 +0000 (09:53 +0100)
commit540a4eeb2354a034d8d15fa5a123994979c7528a
tree1a778d922a4061d1237af275e90f17e58024718b
parentd8c8bd7809c10c6abaf3ad4b72f6a8fa27b4c748
fix: preserve `this` when invoking standard validator (#14943)

The validate function call currently loses the dynamic this binding. Thus, if a standard validator's validate function is a class method that makes use of this, it will be undefined, as is the case when using TypeBox's standard schema adapter.
.changeset/funny-seas-begin.md [new file with mode: 0644]
packages/kit/src/runtime/app/server/remote/shared.js