fluid-type-scale-calculator icon indicating copy to clipboard operation
fluid-type-scale-calculator copied to clipboard

Use zod for schema validation

Open AleksandrHovhannisyan opened this issue 1 year ago • 0 comments

Description/user story

Currently, I'm hand-rolling schema validation for query params:

https://github.com/AleksandrHovhannisyan/fluid-type-scale-calculator/blob/c69d0de6dcfaf27f3af4b0545bee98491fb3ac6d/src/schema/schema.ts#L15-L235

This works fine, but it could be cleaner with a package like zod to handle this.

Needs some exploration/testing.

Additional context, ideas, or considerations

AleksandrHovhannisyan avatar Jan 22 '24 16:01 AleksandrHovhannisyan