{"name":"@zeit/schemas","version":"2.34.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.34.0","gitHead":"4262dab09101362e63b420ccfc07dfbee2be3911","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-cjLUEKWW0/DbwNXYNoSfK4fGbIdbt0UusE0VU1YD4vAxPzSjksq0bF0Hmg+W1f9ZxqCTL5NsC0d3V30PQAwtdQ==","shasum":"73358d72431e44e09d4d43f469c301d6ee3c6b56","tarball":"http://registry-npm.ywwl.com/@zeit/schemas/download/@zeit/schemas-2.34.0.tgz","fileCount":15,"unpackedSize":33299,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBHS09tyIagwSjNBl+pDlNpM/dfXnvCVOXZIA5iVuodFAiB0u2YqOOQhOSIZUb7EsrSagG89Sz3O9iUZsAHLV+Blcw=="}],"size":7209,"noattachment":false,"key":"/@zeit/schemas/-/@zeit/schemas-2.34.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.34.0_1703113865753_0.060907153637752565"},"_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":1703113865971,"_cnpm_publish_time":1703113865971,"dist-tags":{"latest":"2.38.0"}}