{"name":"@zeit/schemas","version":"2.38.0","author":{"name":"leo"},"license":"MIT","_id":"@zeit/schemas@2.38.0","maintainers":[{"name":"matheuss","email":"matheus.frndes@gmail.com"},{"name":"nick.tracey","email":"nick.tracey@vercel.com"},{"name":"vercel-release-bot","email":"infra+release@vercel.com"},{"name":"zeit-bot","email":"team@zeit.co"},{"name":"matt.straka","email":"matt.j.straka@gmail.com"}],"homepage":"https://github.com/zeit/schemas#readme","bugs":{"url":"https://github.com/zeit/schemas/issues"},"git":{"pre-commit":"lint-staged"},"dist":{"shasum":"5845450e27f52974ff468b34ab419abba2092141","tarball":"http://registry-npm.ywwl.com/@zeit/schemas/download/@zeit/schemas-2.38.0.tgz","fileCount":15,"integrity":"sha512-/QOVNdZD350SBHq3uXk2dUxLvkzSqQ6QHsUPFhryftGIrIXc4lRd3MRToTP8yhn9hnQoLuC9xU4vFcR20CV5Nw==","signatures":[{"sig":"MEYCIQDecsSyb6hpomCpY1GMbNbX910XNVsjyz5jxlSsFFOSyQIhAIEhD3iB+sHa5jrz7SXLADfgx0jRDAkevl+znnsrOJAV","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":35802,"size":7707,"noattachment":false,"key":"/@zeit/schemas/-/@zeit/schemas-2.38.0.tgz"},"gitHead":"f78f1110a2c2d06d8ecc05999a8cd3fccd06670b","scripts":{"lint":"zeit-eslint --ext .jsx,.js .","test":"yarn run lint && best --verbose","lint-staged":"git diff --diff-filter=ACMRT --cached --name-only '*.js' '*.jsx' | xargs zeit-eslint"},"_npmUser":{"name":"vercel-release-bot","email":"infra+release@vercel.com"},"repository":{"url":"git+https://github.com/zeit/schemas.git","type":"git"},"_npmVersion":"10.8.2","description":"All schemas used for validation that are shared between our projects","directories":{},"_nodeVersion":"18.20.5","eslintConfig":{"extends":["@zeit/eslint-config-node"]},"_hasShrinkwrap":false,"devDependencies":{"ajv":"6.5.1","eslint":"4.19.1","@zeit/best":"0.4.3","@zeit/git-hooks":"0.1.4","@zeit/eslint-config-node":"0.3.0"},"_npmOperationalInternal":{"tmp":"tmp/schemas_2.38.0_1736514713611_0.6613100255977673","host":"s3://npm-registry-packages-npm-production"},"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":1736514713837,"_cnpm_publish_time":1736514713837,"dist-tags":{"latest":"2.38.0"}}