fabian-hiller / valibot

The modular and type safe schema library for validating structural data 🤖
https://valibot.dev
MIT License
6.32k stars 204 forks source link

Add JSON type schema #936

Open jhnns opened 9 hours ago

jhnns commented 9 hours ago

Adds documentation for a JSON type schema as discussed in #933

I changed the code snippet to use the second naming convention. Not sure if there's a better alternative for any in v.UnionSchema<any, undefined>, but I also don't think it's a big issue as the type is not used for inference.