sveltekit-superforms icon indicating copy to clipboard operation
sveltekit-superforms copied to clipboard

Add Standard Schema adapter

Open sillvva opened this issue 8 months ago • 4 comments

  • My IDE also sorted the imports in a few files

https://standardschema.dev/

Standard Schema is a common interface designed to be implemented by JavaScript and TypeScript schema libraries.

The goal is to make it easier for ecosystem tools to accept user-defined type validators, without needing to write custom logic or adapters for each supported library. And since Standard Schema is a specification, they can do so with no additional runtime dependencies. Integrate once, validate anywhere.

What schema libraries implement the spec?

These are the libraries that have already implemented the Standard Schema interface. (If you maintain a library that implements the spec, create a PR to add yourself!)

Implementer Version(s) Link
Zod 3.24.0+ PR
Valibot v1.0+ PR
ArkType v2.0+ PR
Effect Schema v3.13.0+ PR
Arri Schema v0.71.0+ PR
TypeMap v0.8.0+ PR
Formgator v0.1.0+ PR
decoders v2.6.0+ PR
ReScript Schema v9.2.0+ PR
Skunkteam Types v9.0.0+ PR

sillvva avatar Mar 03 '25 15:03 sillvva