Type '{ auth: "public"; rawBody: true; }' is not assignable to type 'Omit<FastifyContextConfig & FastifyRouteConfig, "url" | "method">'.
Object literal may only specify known properties, and 'rawBody' does not exist in type 'Omit<FastifyContextConfig & FastifyRouteConfig, "url" | "method">'.
as of fastify 4.19.0 route configs have to be typed explicitly, without this change with fastify 4.19.0 and above a route like
produces the following error:
See https://github.com/fastify/fastify-rate-limit/pull/306 for a similar fix in an official fastify plugin.