open-draft / reach-schema Goto Github PK
View Code? Open in Web Editor NEWFunctional schema-driven JavaScript object validation library.
Home Page: https://npmjs.com/package/reach-schema
License: MIT License
Functional schema-driven JavaScript object validation library.
Home Page: https://npmjs.com/package/reach-schema
License: MIT License
Need to have a validation mode where extra object properties would cause validation errors.
To validate strict object shapes.
When using the optional
utility it returns a type that is not compatible with the SchemaValue
type expected by the schema keys.
Need to support Array validation.
When installed, [email protected]
has no published TypeScript definitions file, and therefore has no suggestions and autocompletion when being used.
Reach Schema should come with a sensible default behavior. However, ceratin use cases may want to modify how a schema is applied. Examples of such modifications may be:
import { createSchemaFunctor } from 'reach-schema'
const applyCustomSchema = createSchemaFunctor({
traverse: (tree, node) => {},
resolver: (value) => {}
})
applyCustomSchema({
data: ({ value }) => value !== 2
}, {
data: 'value'
})
Call signatures to be designed
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.