{"_id":"@anyhowstep/json-api-schema","_rev":"6-2730999fb9d39620659cffa8cb684211","name":"@anyhowstep/json-api-schema","dist-tags":{"latest":"2.1.0"},"versions":{"1.0.0":{"name":"@anyhowstep/json-api-schema","version":"1.0.0","description":"Validates a json-api object","main":"dist/src/main/index.js","types":"dist/src/main/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc -d"},"author":{"name":"anyhowstep"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/AnyhowStep/json-api-schema.git"},"dependencies":{"schema-decorator":"^1.15.0","typescript":"^2.8.0-dev.20180214"},"gitHead":"de5393d8098993b59c5cacf18d468ed2771fe96a","bugs":{"url":"https://github.com/AnyhowStep/json-api-schema/issues"},"homepage":"https://github.com/AnyhowStep/json-api-schema#readme","_id":"@anyhowstep/json-api-schema@1.0.0","_npmVersion":"5.3.0","_nodeVersion":"6.11.0","_npmUser":{"name":"anyhowstep","email":"justin.ng.1994@outlook.com"},"dist":{"integrity":"sha512-GVryw1Y2yh6gGHoPo5ddtl1AsyY791On2G6zOmVgMi7IczW8ZxCi2UirgZJ/ea0INv7CsMpy2xR34SU8vku7aw==","shasum":"4134657d1d9c9e423a88911bf68030b191c1bcc3","tarball":"https://registry.npmjs.org/@anyhowstep/json-api-schema/-/json-api-schema-1.0.0.tgz","fileCount":7,"unpackedSize":28282,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDwOQiYyTQ2C390j/5KGRIumHvP5rWGLi/kMKQhEsV0zwIgEFp/quMZWHQHGqJE+G1kgnHwfQTtWC26UJu9LxFYy1U="}]},"maintainers":[{"name":"anyhowstep","email":"justin.ng.1994@outlook.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-api-schema_1.0.0_1518635170735_0.3439763903739339"},"_hasShrinkwrap":false},"1.0.1":{"name":"@anyhowstep/json-api-schema","version":"1.0.1","description":"Validates a json-api object","main":"dist/src/main/index.js","types":"dist/src/main/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc -d"},"author":{"name":"anyhowstep"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/AnyhowStep/json-api-schema.git"},"dependencies":{"schema-decorator":"^1.15.0","typescript":"^2.8.0-dev.20180214"},"gitHead":"72365c2f8552bd96494141268005eb44c581c552","bugs":{"url":"https://github.com/AnyhowStep/json-api-schema/issues"},"homepage":"https://github.com/AnyhowStep/json-api-schema#readme","_id":"@anyhowstep/json-api-schema@1.0.1","_npmVersion":"5.3.0","_nodeVersion":"6.11.0","_npmUser":{"name":"anyhowstep","email":"justin.ng.1994@outlook.com"},"dist":{"integrity":"sha512-rjVZYRsb88qSFaIfFioSbHb06dbbyRfyHM9veCmsTPIYMN/usvLm3+aNMtXzEZpvYDAKm48FlE7ExQazE9jSCw==","shasum":"8951c25532d100c890bb838828e3c65aa0e54e0f","tarball":"https://registry.npmjs.org/@anyhowstep/json-api-schema/-/json-api-schema-1.0.1.tgz","fileCount":8,"unpackedSize":28880,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAtn0YlCp6mFJIrDQBNzRbCPgBetfcuNYHLKU1Wgfg/7AiEAhyUOEBbC8ndQduFGDyxydLJYEsq/hwjn8VDErPc/1i0="}]},"maintainers":[{"name":"anyhowstep","email":"justin.ng.1994@outlook.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-api-schema_1.0.1_1518635675917_0.17880819704982787"},"_hasShrinkwrap":false},"1.0.2":{"name":"@anyhowstep/json-api-schema","version":"1.0.2","description":"Validates a json-api object","main":"dist/src/main/index.js","types":"dist/src/main/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc -d"},"author":{"name":"anyhowstep"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/AnyhowStep/json-api-schema.git"},"dependencies":{"schema-decorator":"^1.16.1","typescript":"^2.8.0-dev.20180214"},"gitHead":"4535cc0fd3ab05e36fec13c0e9ce0cda473af6b3","bugs":{"url":"https://github.com/AnyhowStep/json-api-schema/issues"},"homepage":"https://github.com/AnyhowStep/json-api-schema#readme","_id":"@anyhowstep/json-api-schema@1.0.2","_npmVersion":"5.3.0","_nodeVersion":"6.11.0","_npmUser":{"name":"anyhowstep","email":"justin.ng.1994@outlook.com"},"dist":{"integrity":"sha512-PPrmUcZTEXh3+aKYzKS/969UB0cHH3sRycyl+iDHXTfOag7ymXUoxaf9G2Mv67s3chcHLnOz8fLjws4VDv6poA==","shasum":"bb6651ba61bbb09f8478d7be2b5b6d9ce77fac00","tarball":"https://registry.npmjs.org/@anyhowstep/json-api-schema/-/json-api-schema-1.0.2.tgz","fileCount":8,"unpackedSize":28880,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDBWigZLdj/OkeAoRBoyg3K0hUT8f7wC3CDDPqJa40aHgIgKtfiuUiiJMvPUQ2aw5vpGbyXOHXUnZMoiitXvmYz+l0="}]},"maintainers":[{"name":"anyhowstep","email":"justin.ng.1994@outlook.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-api-schema_1.0.2_1518745712817_0.851442474047706"},"_hasShrinkwrap":false},"2.0.0":{"name":"@anyhowstep/json-api-schema","version":"2.0.0","description":"Validates a json-api object","main":"dist/src/main/index.js","types":"dist/src/main/index.d.ts","scripts":{"test":"ts-node","test-all":"ts-node ./src/test/basic.ts","build":"tsc -d"},"author":{"name":"anyhowstep"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/AnyhowStep/json-api-schema.git"},"dependencies":{"schema-decorator":"^2.3.0"},"devDependencies":{"@types/tape":"^4.2.32","tape":"^4.9.1","ts-node":"^7.0.0","typescript":"^3.0.1"},"gitHead":"1e1bfb456309e9132f2da4b1950780cd35174b54","bugs":{"url":"https://github.com/AnyhowStep/json-api-schema/issues"},"homepage":"https://github.com/AnyhowStep/json-api-schema#readme","_id":"@anyhowstep/json-api-schema@2.0.0","_npmVersion":"5.3.0","_nodeVersion":"6.11.0","_npmUser":{"name":"anyhowstep","email":"justin.ng.1994@outlook.com"},"dist":{"integrity":"sha512-QtGACLo8cAvUsIDsSZfVZ2BQm5jToadeYR7LTC/+GiLvyLX6Cy3aowGCNpQWzK2kFkInIOS1tEjKbzfje3V5zg==","shasum":"be32f5355e28159331fc3aa62342754bffaadfdb","tarball":"https://registry.npmjs.org/@anyhowstep/json-api-schema/-/json-api-schema-2.0.0.tgz","fileCount":11,"unpackedSize":37866,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbZnwfCRA9TVsSAnZWagAA5oIP/A6PRkJpXSZRz0hRkojy\nHTue7FYoGTyFqh2BkwErI1ZOPGKhDgF2231+ktP88Lxwnrn+6+GX1WwPC7KH\ngV/JxZfAK8Z9N51OWgcNU2Oh/PzWBt6kRnaaw5lk+owT54AE/whghHbL4u0q\nD/bv/StxQojMSGn6LRu8iL0yFcWOShwSXhP+8Qxpd8YUzWLBMVncFK7U6D3/\naUwrDIqNMatI8bzJ/AX51zwMMoB9DK9BZlnZadjzY4RsELe84GlF1N1fgRfm\nB+770yGTg1swI+A6RoSeD+XO8iH9wxEwX9DM1RXGIhcV1P+A+XYTkTo5QdjX\nG7WQGPYCYzPizuOLULbnD425P5a85ux9kSTuSBVPBqaRMG41uRpKRFGXa+Mm\n78V4Ct1SgFVqg4x/O43nmkYBJ6nbZZXb+IQV3vwAM95gSRdrPvDz03C8sOIF\nNr6CEkW9Wg3AppJ4bmNS05P72q4ygO3IuMSb3Plq8EgRKNJwpKwpMrAERn8I\nxLQGQ7E7JFa102Wq1JJeytJAqgf7pDELse8z3/T+CV9EJklcrc5hRj9DrMR6\n6rul18mJFdSDX4JxtYBDAMc20Cjn01TafjD8ed0a6Swm0UyFqXSd9j6WEp0t\nOaTKvErXwW6qkO/UU+oUCSZ8m67jFj0g4SnWanWGlfyZ1gWApHuKMbJwXRfW\ne4Yc\r\n=UNYR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICscx9Cpn88h4wsiXc9t0LjXtWOUobLfYUv8Un4Yj9bnAiEAtgrHHgfaMVPMMQxWv3U30WlLM/KS9GBMLYx2/z7rghI="}]},"maintainers":[{"name":"anyhowstep","email":"justin.ng.1994@outlook.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-api-schema_2.0.0_1533443103416_0.6818604315780541"},"_hasShrinkwrap":false},"2.1.0":{"name":"@anyhowstep/json-api-schema","version":"2.1.0","description":"Validates a json-api object","main":"dist/src/main/index.js","types":"dist/src/main/index.d.ts","scripts":{"test":"ts-node","test-all":"ts-node ./src/test/basic.ts","build":"tsc -d"},"author":{"name":"anyhowstep"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/AnyhowStep/json-api-schema.git"},"dependencies":{"schema-decorator":"^2.6.0"},"devDependencies":{"@types/tape":"^4.2.32","tape":"^4.9.1","ts-node":"^7.0.0","typescript":"^3.0.1"},"gitHead":"61334f8e589848a1fb5f075198d7bab25bb31d97","bugs":{"url":"https://github.com/AnyhowStep/json-api-schema/issues"},"homepage":"https://github.com/AnyhowStep/json-api-schema#readme","_id":"@anyhowstep/json-api-schema@2.1.0","_npmVersion":"5.3.0","_nodeVersion":"6.11.0","_npmUser":{"name":"anyhowstep","email":"justin.ng.1994@outlook.com"},"dist":{"integrity":"sha512-kQnuYGT4US+MCY6zc2ICnI6k2kYoRkR4lLYPd2tgdoXOX4vVJ3vb9eU3shfbzw9hlyTUSa73RgStpmYMh0PiEw==","shasum":"0406e81b5e88e4d6eb91df06a0d44bbf7cb2e6d8","tarball":"https://registry.npmjs.org/@anyhowstep/json-api-schema/-/json-api-schema-2.1.0.tgz","fileCount":11,"unpackedSize":39478,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbZ5XpCRA9TVsSAnZWagAAMCIP/0Rda+b06mIx3NEnb8pX\ndBS9yF9B77HmCoonN4Kz9yUnFemN/vdbEWA0r3FBHsAGiv/FZ/3DOav4KXVN\nq0qdK3p/xuISM1NhivFA/lwtiLAszTVTmDwBYRbxNsCMqhl/BznwGdg5PvU7\nvAYAR26ZWw8aR8P4w+dairayonMyQbshF174aNbcxY67sdT8W1ri6LQkB/8g\nhZ0EJjQW/PupXU0COAH4NjfzRRudG846lnm5UOqXYeRRQhd/VOBsFbxfuLdj\nlE+5s9ILAlLSR5ihkDCcRJCP+v31/lxV2ytkhew8UqS78e5pQPzlQK4Atr9U\nb+EC0I8K6iUEXpzRfG4+V9GjmzfbonDoTmyL4jCrGVVs+uJ2LIN6Nt74Z0uz\n3NLaLuSHh1XQI/MMu9arQ3XQRO5XfQFg1oSBZApO72yqGLB8hGqJDXp7PaP5\nRlgzQxQnVFpuxk3V0YYlRyaphjsK6sXx37EFGmU20EnLHWzVbh0K3US+GnL8\nGtSei9wVEGKfGTTN9rk6F2qEGTjQyy3m12jX+E+wda0jFtswtK8GUrBelpUe\nJeSQeS2AlB7alpezWcO29gXz2zL0vYa3HHp5jye2OoTonlhh8/XJU3DHk0hT\nqw4sxSeowgxdQRpfzCE8a7U5Ce1TMW+VZxt6wRhQO7LgJR+oeWzxhwHOtYG+\nHC1z\r\n=dzz/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFDQcD0QBgDgQ/PuqK7eENFY1LisNhNXNskJFdBbm8z6AiAFIfBJUe6Uq9SC5vIKjQPNK9PlBLg/n/VauquhIsUGGQ=="}]},"maintainers":[{"name":"anyhowstep","email":"justin.ng.1994@outlook.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-api-schema_2.1.0_1533515240573_0.8707425580436212"},"_hasShrinkwrap":false}},"time":{"created":"2018-02-14T19:06:10.656Z","1.0.0":"2018-02-14T19:06:11.010Z","modified":"2022-04-04T14:27:00.145Z","1.0.1":"2018-02-14T19:14:36.036Z","1.0.2":"2018-02-16T01:48:32.867Z","2.0.0":"2018-08-05T04:25:03.466Z","2.1.0":"2018-08-06T00:27:20.668Z"},"maintainers":[{"name":"anyhowstep","email":"justin.ng.1994@outlook.com"}],"description":"Validates a json-api object","homepage":"https://github.com/AnyhowStep/json-api-schema#readme","repository":{"type":"git","url":"git+https://github.com/AnyhowStep/json-api-schema.git"},"author":{"name":"anyhowstep"},"bugs":{"url":"https://github.com/AnyhowStep/json-api-schema/issues"},"license":"ISC","readme":"### Install\n\n`npm install --save @anyhowstep/json-api-schema`\n\n### Usage\n\n```\nimport * as sd from \"schema-decorator\";\nimport * as jsonApi from \"json-api-schema\";\n\nconst doc = jsonApi.document(sd.naturalNumber());\ndoc(\"test\", {\n    data : 34,\n}); //OK\ndoc(\"test\", {\n    data : 34.5,\n}); //Error, data must be a natural number\ndoc(\"test\", {\n}); //Error, must have one of the following, data, errors, meta\n```\n","readmeFilename":"README.md"}