Mmanishjha-04

fastify/5/route-schema-enhancement

No description available

Legacy
fastify5migration
Public
28 downloads
0 stars
How to Use
Run this codemod on your codebase using one of the following commands

The easiest way to run this codemod without installing anything globally:

Documentation

This codemod enhances the schema definition for query strings by converting it to the full object schema format, adding properties and required fields.

Before

ts

After

ts

This illustrates how the codemod updates query string schema definitions in Fastify v5 to the more detailed object schema format, ensuring proper validation.

Ready to contribute?

Build your own codemod and share it with the community.