1.3.2 • Published 5 years ago

@attractor/schemas v1.3.2

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

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.

1.3.2

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago