From 5b97548285d2841a74a7f2c42dc87de29052ac12 Mon Sep 17 00:00:00 2001 From: Martin Eley <44975112+bigbluekayak@users.noreply.github.com> Date: Wed, 18 Dec 2024 10:01:01 +0000 Subject: [PATCH] Update validators.md Changed import schemaHooks to import hooks as schemaHooks, otherwise we get an error "Module '"@feathersjs/schema"' has no exported member 'schemaHooks'." --- docs/api/schema/validators.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/schema/validators.md b/docs/api/schema/validators.md index 4ccc34a5c0..c3a091e3c0 100644 --- a/docs/api/schema/validators.md +++ b/docs/api/schema/validators.md @@ -63,7 +63,7 @@ The following hooks take a [validation function](#validation-functions) and vali `schemaHooks.validateData` takes a [validation function](#validation-functions) and allows to validate the `data` in a `create`, `update` and `patch` request as well as [custom service methods](../services.md#custom-methods). It can be used as an `around` or `before` hook. ```ts -import { Ajv, schemaHooks } from '@feathersjs/schema' +import { Ajv, hooks as schemaHooks } from '@feathersjs/schema' import { Type, getValidator } from '@feathersjs/typebox' import type { Static } from '@feathersjs/typebox' import { dataValidator } from '../validators'