-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rewamp untyped into a runtime-friendly lib #101
Comments
Notes from @decs (author of typeschema): (unjs/h3#431 (comment))
|
Another option from https://vee-validate.logaretm.com/v4/guide/composition-api/getting-started/#form-schema The benefit would be to keep minimum dependencies, but would need to create and maintain each package. The caveat I see with |
The peer dependencies on I looked at the
I still haven't set my mind on one package vs multiple packages (one per adapter). But I currently lean towards one package to avoid users from having to manually install every adapter they care about (hopefully all). Though it's growing on me the idea of having both: scoped packages for each adapter and one main package will all automatically installed. |
Background
Back in time I was developing the untyped library, the idea was to make a unified (build-time) solution to merge type and runtime validation from one source with little or no extra code and use JSON Schema as a unified schema format mainly for handling nuxt config schema.
Currently untyped:
However, it has some limitations:
field()
helper for easier schema creation #91)Future Vision
Untyped should:
At this point, I am not sure how to make the perfect solution to meet the above criteria. I might also end-up with making a new library if not fitting for one lib. Share the main vision and ideas publicly to gather ideas and myself taking notes.
Similar efforts
Recently I have found out about the (amazing) typeschema project which tries to almost do the same of unifying schema validation libraries. I love it but it has some implementation drawbacks that are not fully tree-shakable (it is fixable with some major changes) but also is not itself trying to make a standard schema nor provide build-time utils like currently untyped does.
There is also JsonTypeDef Standard (RFC) which could be a nice replacement for JSON Schema as a current source of trust.
Schema Validation Libs
Zod
Joi
Yup
io-ts
Runtypes
Valibot
AJV
Superstruct
OW
Typebox
Typia
Deepkit/type
Arktype
The text was updated successfully, but these errors were encountered: