@fasciajs/valibot
v0.3.0
Published
A valibot schema, read as a Node.
Maintainers
Readme
@fasciajs/valibot
A valibot schema, read as a Node.
Part of fascia. A schema is described once and written as anything: four validators and five targets, and neither side knows the other exists.
npm install @fasciajs/valibotvalibot states an assertion as a list of actions on the node itself, so a bounded string is one node with a pipe beside it and reading an assertion means walking that list.
import { valibotSource } from '@fasciajs/valibot'
import { describe } from '@fasciajs/core'
describe(v.object({ id: v.string() }), valibotSource, 'input')See the root README for the whole shape, what it refuses, and the numbers.
MIT.
