File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -828,6 +828,14 @@ async function onCacheEntryAdded(
828828
829829### Schema Validation
830830
831+ Endpoints can have schemas for runtime validation of various values . Any [Standard Schema ](https :// standardschema.dev/) compliant library can be used.
832+
833+ :::warning
834+
835+ Schema failures are treated as _fatal_ , meaning that normal error handling such as tag invalidation will not be executed .
836+
837+ :::
838+
831839#### ` argSchema `
832840
833841_ (optional )_
@@ -846,7 +854,7 @@ _(optional)_
846854
847855#### ` rawResponseSchema `
848856
849- _ (optional , only for query endpoints )_
857+ _ (optional , not applicable with ` queryFn ` )_
850858
851859[summary ](docblock :// query/endpointDefinitions.ts?token=EndpointDefinitionWithQuery.rawResponseSchema)
852860
@@ -862,7 +870,7 @@ _(optional)_
862870
863871#### ` rawErrorResponseSchema `
864872
865- _ (optional , only for query endpoints )_
873+ _ (optional , not applicable with ` queryFn ` )_
866874
867875[summary ](docblock :// query/endpointDefinitions.ts?token=EndpointDefinitionWithQuery.rawErrorResponseSchema)
868876
You can’t perform that action at this time.
0 commit comments