2.36.0 • Published 17 days ago

@zeit/schemas v2.36.0

Weekly downloads
428,048
License
MIT
Repository
github
Last release
17 days ago

Vercel Schemas

Schemas used across many Vercel packages to validating config files, requests to APIs, and more.

Why?

  • Keep schemas used across Vercel projects in sync
  • We use .js instead of .json because parsing JSON takes longer

Usage

To get started, pick one of the schemas in this repository and load it:

const schema = require('@zeit/schemas/deployment/config');

Next, set up AJV (the validator) and run the schema through it:

const AJV = require('ajv');

const ajv = new AJV({ allErrors: true });
const isValid = ajv.validate(schema, <object-to-validate>);

if (!isValid) {
	console.error(`The following entries are wrong: ${JSON.stringify(ajv.errors)}`);
}

That is all! :tada:

Contributing

We are currently not accepting external contributions for this repository.

2.36.0

17 days ago

2.35.0

4 months ago

2.34.0

5 months ago

2.33.0

5 months ago

2.32.0

9 months ago

2.30.0

1 year ago

2.31.0

1 year ago

2.29.0

1 year ago

2.25.0

2 years ago

2.27.0

2 years ago

2.20.0

2 years ago

2.22.0

2 years ago

2.28.0

2 years ago

2.24.0

2 years ago

2.26.0

2 years ago

2.21.0

2 years ago

2.23.0

2 years ago

2.19.0

3 years ago

2.18.0

3 years ago

2.17.0

4 years ago

2.16.0

4 years ago

2.15.2

5 years ago

2.15.1

5 years ago

2.15.0

5 years ago

2.14.0

5 years ago

2.13.0

5 years ago

2.12.0

5 years ago

2.11.0

5 years ago

2.10.0

6 years ago

2.9.0

6 years ago

2.8.0

6 years ago

2.7.0

6 years ago

2.6.0

6 years ago

2.5.0

6 years ago

2.4.0

6 years ago

2.3.0

6 years ago

2.2.0

6 years ago

2.1.1

6 years ago

2.1.0

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.7.0

6 years ago

1.6.3

6 years ago

1.6.2

6 years ago

1.6.1

6 years ago

1.6.0

6 years ago

1.5.1

6 years ago

1.5.0

6 years ago

1.4.0

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago