diff --git a/docs/Reference/Type-Providers.md b/docs/Reference/Type-Providers.md index 613d751d06..3ec4215686 100644 --- a/docs/Reference/Type-Providers.md +++ b/docs/Reference/Type-Providers.md @@ -70,14 +70,7 @@ import { Type } from '@sinclair/typebox' import fastify from 'fastify' -const server = fastify({ - ajv: { - customOptions: { - strict: 'log', - keywords: ['kind', 'modifier'], - }, - }, -}).withTypeProvider() +const server = fastify().withTypeProvider() server.get('/route', { schema: { @@ -94,13 +87,6 @@ server.get('/route', { }) ``` -TypeBox uses the properties `kind` and `modifier` internally. These properties -are not strictly valid JSON schema which will cause `AJV@7` and newer versions -to throw an invalid schema error. To remove the error it's either necessary to -omit the properties by using -[`Type.Strict()`](https://github.com/sinclairzx81/typebox#strict) or use the AJV -options for adding custom keywords. - See also the [TypeBox documentation](https://github.com/sinclairzx81/typebox#validation) on how to set up AJV to work with TypeBox.