{"name":"@zeit/schemas","version":"2.31.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":"1934ffdd99bb0aeb82c1d3261daf87bbc3789179","bugs":{"url":"https://github.com/zeit/schemas/issues"},"homepage":"https://github.com/zeit/schemas#readme","_id":"@zeit/schemas@2.31.0","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-BmR8nt8MgALslpFFS9saGwJ5i/jYZ2qasMGwjd+NOvN5uTyFtcsO/hkEJz6u4hFSxwKYIEwGKnK9oQfmmTne+g==","shasum":"0342c9e8b083cdfe47fb52fca7397cf0b6e3598b","tarball":"http://registry-npm.ywwl.com/@zeit/schemas/download/@zeit/schemas-2.31.0.tgz","fileCount":15,"unpackedSize":32251,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDVfMDv5h8yWk80sUq1yeQtCnIY04gsCLLcpeOrTi7Z3AIgEKrYQbaBDn8A4xMUeeCbkXonYoxiRZEu8JIAmbtBwQk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkSZH3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrOwQ//T2LPKDQfbfn8cMlPXfKN3fV3R25rJ5UwRE5Lsav2YyxxCv6o\r\ngMQFIKegPtoBbd8zZtgtMVGJosJg39hCpDMbUGo/5vQmzByhvjDeR+2Fc4T+\r\nVLFLDPS+8Upz15ZcP8AONsaMjh3hHI7xgGNyrjLG4r4/WcVIFrMRP/xn0ihg\r\nl+dBC9op5rFIuMmbuIaEdNxaxAHn2hNVdbVtXg0ZgEg+xCf84/SaJ0ldPB/x\r\naxsYM23z3r6/n6X/YGhl70mNms1voMMfaRVS9oIvKDTyWiJeRNTXzrkHMtqk\r\nzpp2KCdlg2KIPvc0Z4n3qznaF0qkmw6AFv73d1tztlUX061ZBEXAoamRjInS\r\nA9zfxr3vtKPAF6fYyUV1mJ9g3Wi/B48pGdA9RdiPc2QFrtZUaiVYs1U2uWmj\r\nGdOjZmRfSezjR8e7BsxUo7EMHXLCSolxfOA4Ao50UleYoD9MkT8FbdYK99R+\r\ntReZ7u8YKgY7hbV/p+CjzKr/s15/9L61JvJGt4OIvYZ2exO0tboyLOPTAvsc\r\ncd7Kb8lbF6OpM+3vF71uLTZw5mlNem3biLNgBxVATKiulr5y2dKHsoK9fc0t\r\nhBI9K9njpQ8ntgeDHM2Tn+3c3znTSC0ENDVPoH4B385+jCTyFHNQ8/QizI4q\r\nCfRNTLfR1YZDZmkH1iitBUvf9eoJpfJKP4A=\r\n=f60g\r\n-----END PGP SIGNATURE-----\r\n","size":7040,"noattachment":false,"key":"/@zeit/schemas/-/@zeit/schemas-2.31.0.tgz"},"_npmUser":{"name":"vercel-release-bot","email":"infra+release@vercel.com"},"directories":{},"maintainers":[{"name":"nwienert","email":"natewienert@gmail.com"},{"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.31.0_1682543095203_0.9107074925474481"},"_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":1682543095381,"_cnpm_publish_time":1682543095381,"dist-tags":{"latest":"2.38.0"}}