diff --git a/docs/Reference/Type-Providers.md b/docs/Reference/Type-Providers.md index 3ec4215686..4cfe8dcd32 100644 --- a/docs/Reference/Type-Providers.md +++ b/docs/Reference/Type-Providers.md @@ -155,14 +155,7 @@ import Fastify from 'fastify' import { TypeBoxTypeProvider } from '@fastify/type-provider-typebox' import { Type } from '@sinclair/typebox' -const server = Fastify({ - ajv: { - customOptions: { - strict: 'log', - keywords: ['kind', 'modifier'], - }, - }, -}).withTypeProvider() +const server = Fastify().withTypeProvider() server.register(plugin1) // wrong server.register(plugin2) // correct @@ -213,14 +206,7 @@ import Fastify from 'fastify' import { TypeBoxTypeProvider } from '@fastify/type-provider-typebox' import { registerRoutes } from './routes' -const server = Fastify({ - ajv: { - customOptions: { - strict: 'log', - keywords: ['kind', 'modifier'], - }, - }, -}).withTypeProvider() +const server = Fastify().withTypeProvider() registerRoutes(server)