{"name":"@zeit/schemas","version":"2.33.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"},"_id":"@zeit/schemas@2.33.0","gitHead":"f5674ed5f3de664067a1f77f0bada7a2e5106a19","bugs":{"url":"https://github.com/zeit/schemas/issues"},"homepage":"https://github.com/zeit/schemas#readme","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-O8qFijr3FVad7QItwNOQP+q2VPSUAy3tZtwMlrxSNbF9ZS7FZz5J38bUAIJGxRUQKIAmKA9BTkfgAgNnAGVP6g==","shasum":"e8a34f15a60156ff42a11b399d6fb99e57fcfec2","tarball":"http://registry-npm.ywwl.com/@zeit/schemas/download/@zeit/schemas-2.33.0.tgz","fileCount":15,"unpackedSize":32378,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFMVHjXvgNH0ED0yOlL8DQtC1O6he32tTC6ADCc2fZynAiAdagYC9+OxZ44tMQvw+ikTRg8D7bOJ6ZBktin/hYO9ng=="}],"size":7119,"noattachment":false,"key":"/@zeit/schemas/-/@zeit/schemas-2.33.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.33.0_1703007882155_0.19054639415348396"},"_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":1703007882319,"_cnpm_publish_time":1703007882319,"dist-tags":{"latest":"2.38.0"}}