The gz library is heavily inspired by zod.dev, the library created by @colinhacks.com as a method to validate schemas, responses, and requests with TypeScript, but created for the Godot Game Engine's primary language, GDScript.
See test_scene.gd for a list of current tests that you can run to ensure the library is functioning as expected, and for ways to use the various methods/types within the library.
Remaining implementations:
- Test transforms
- Test intersection
- Test except
- Test union
- Add strict key validation on object keys
- Add passthrough validation on object keys
Massive thank you to @colinhacks.com for creating the original Zod library! Check it out at https://zod.dev! If you're a TypeScript developer, it's probably the best library out there for ensuring everything just works. My hope is that this library is able to function similarly but for Godot!