{"name":"@zeit/schemas","version":"2.32.0","description":"All schemas used for validation that are shared between our projects","scripts":{"test":"yarn run lint && best --verbose","lint":"zeit-eslint --ext .jsx,.js .","lint-staged":"git diff --diff-filter=ACMRT --cached --name-only '*.js' '*.jsx' | xargs zeit-eslint"},"repository":{"type":"git","url":"git+https://github.com/zeit/schemas.git"},"author":{"name":"leo"},"license":"MIT","devDependencies":{"@zeit/best":"0.4.3","@zeit/eslint-config-node":"0.3.0","@zeit/git-hooks":"0.1.4","ajv":"6.5.1","eslint":"4.19.1"},"eslintConfig":{"extends":["@zeit/eslint-config-node"]},"git":{"pre-commit":"lint-staged"},"gitHead":"26aebeadf4ea04504927df522b6ec3387c828998","bugs":{"url":"https://github.com/zeit/schemas/issues"},"homepage":"https://github.com/zeit/schemas#readme","_id":"@zeit/schemas@2.32.0","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-9a9Zvrst++ivbZhhkEfZYYeC5vYyBob2FhF8hL1NSfWhgo0w54RuZp7cC8pbmxq0ak22x8/Xo5MKFlJhLnbNxw==","shasum":"88a570839b112450ace4d6e2f53c919c4d72fd84","tarball":"http://registry-npm.ywwl.com/@zeit/schemas/download/@zeit/schemas-2.32.0.tgz","fileCount":15,"unpackedSize":32393,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFtutHyXwCE8Bq53CspTJFAR9XCv3B5nkED6d3IbnybmAiEAzuItrmYZWkVSosVowsm0Vhk74OgoRWSMOYtpu41xabM="}],"size":7062,"noattachment":false,"key":"/@zeit/schemas/-/@zeit/schemas-2.32.0.tgz"},"_npmUser":{"name":"vercel-release-bot","email":"infra+release@vercel.com"},"directories":{},"maintainers":[{"name":"gdborton","email":"gdborton@gmail.com"},{"name":"matt.straka","email":"matt.j.straka@gmail.com"},{"name":"nick.tracey","email":"nick.tracey@vercel.com"},{"name":"zeit-bot","email":"team@zeit.co"},{"name":"vercel-release-bot","email":"infra+release@vercel.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/schemas_2.32.0_1693001830188_0.44103464928351865"},"_hasShrinkwrap":false,"readme":"# Vercel Schemas\n\nSchemas used across many Vercel packages to validating config files, requests to APIs, and more.\n\n## Why?\n\n- Keep schemas used across Vercel projects in sync\n- We use `.js` instead of `.json` because parsing JSON takes longer\n\n## Usage\n\nTo get started, pick one of the schemas in this repository and load it:\n\n```js\nconst schema = require('@zeit/schemas/deployment/config');\n```\n\nNext, set up [AJV](https://github.com/epoberezkin/ajv) (the validator) and run the schema through it:\n\n```js\nconst AJV = require('ajv');\n\nconst ajv = new AJV({ allErrors: true });\nconst isValid = ajv.validate(schema, <object-to-validate>);\n\nif (!isValid) {\n\tconsole.error(`The following entries are wrong: ${JSON.stringify(ajv.errors)}`);\n}\n```\n\nThat is all! :tada:\n\n## Contributing\n\nWe are currently not accepting external contributions for this repository.\n","publish_time":1693001830358,"_cnpm_publish_time":1693001830358,"dist-tags":{"latest":"2.38.0"}}