Skip to content

attractorai/schemas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Attractor's schemas

The schemas contained within this package are used all across the Attractor ecosystem to validate config files, requests to APIs and more. It ensures users always send just the right data.

Usage

To get started require the schema you want to use.

const { signUp } = require('@attractor/schemas')

And to run the validation just do:

    if (!await signUp.isValid(data)) {
        /* do some error stuff */
    }

Usage in formik based forms is even more straightforward, just pass it as a schema.

About

General schemas for attractor ecosystem

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published