@cratestack/validator-yup 0.17.1 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ const runtime = new CratestackRpcRuntime("https://api.example.com", {
|
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
Ops with no configured schema pass through unvalidated — this is opt-in per op, not a blanket
|
|
27
|
-
gate. On success, the schema's
|
|
27
|
+
gate. On success, the schema's _cast_ output (defaults, type coercion) becomes the actual request
|
|
28
28
|
`input`, not just a type-level assertion. On failure, the chain short-circuits — the real network
|
|
29
29
|
call never happens — and the call rejects the same way a server-side validation failure would,
|
|
30
30
|
with an `RpcErrorBody` carrying `code: "invalid_argument"`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cratestack/validator-yup",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"description": "An RpcLink for CrateStack's generated TypeScript RPC client that validates request input against per-op yup schemas.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"lint": "biome check ."
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@cratestack/ts-types": "0.
|
|
42
|
+
"@cratestack/ts-types": "0.18.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"yup": "^1.4.0"
|