Skip to content

Commit d74a3ce

Browse files
committed
blurb
1 parent f7ed362 commit d74a3ce

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

docs/rtk-query/api/createApi.mdx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)