@zeit/schemas
All schemas used for validation that are shared between our projects
Last updated 4 years ago by nwienert .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @zeit/schemas 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 2.26.0                                ...           latest (4 years ago)

49 Versions

  • 2.26.0                                ...           4 years ago
  • 2.25.0                                ...           4 years ago
  • 2.24.0                                ...           4 years ago
  • 2.23.0                                ...           4 years ago
  • 2.22.0                                ...           4 years ago
  • 2.21.0                                ...           4 years ago
  • 2.20.0                                ...           4 years ago
  • 2.19.0                                ...           4 years ago
  • 2.18.0                                ...           5 years ago
  • 2.17.0                                ...           5 years ago
  • 2.16.0                                ...           6 years ago
  • 2.15.2                                ...           7 years ago
  • 2.15.1                                ...           7 years ago
  • 2.15.0                                ...           7 years ago
  • 2.14.0                                ...           7 years ago
  • 2.13.0                                ...           7 years ago
  • 2.12.0                                ...           7 years ago
  • 2.11.0                                ...           7 years ago
  • 2.10.0                                ...           7 years ago
  • 2.9.0                                ...           7 years ago
  • 2.8.0                                ...           8 years ago
  • 2.7.0                                ...           8 years ago
  • 2.6.0                                ...           8 years ago
  • 2.5.0                                ...           8 years ago
  • 2.4.0                                ...           8 years ago
  • 2.3.0                                ...           8 years ago
  • 2.2.0                                ...           8 years ago
  • 2.1.1                                ...           8 years ago
  • 2.1.0                                ...           8 years ago
  • 2.0.3                                ...           8 years ago
  • 2.0.2                                ...           8 years ago
  • 2.0.1                                ...           8 years ago
  • 2.0.0                                ...           8 years ago
  • 1.7.0                                ...           8 years ago
  • 1.6.3                                ...           8 years ago
  • 1.6.2                                ...           8 years ago
  • 1.6.1                                ...           8 years ago
  • 1.6.0                                ...           8 years ago
  • 1.5.1                                ...           8 years ago
  • 1.5.0                                ...           8 years ago
  • 1.4.0                                ...           8 years ago
  • 1.3.0                                ...           8 years ago
  • 1.2.0                                ...           8 years ago
  • 1.1.2                                ...           8 years ago
  • 1.1.1                                ...           8 years ago
  • 1.1.0                                ...           8 years ago
  • 1.0.2                                ...           8 years ago
  • 1.0.1                                ...           8 years ago
  • 1.0.0                                ...           8 years ago
Maintainers (202)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 2
Last Month 0
Dependencies (0)
None
Dev Dependencies (5)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |