{"name":"json-schema-typed","description":"JSONSchema TypeScript definitions.","version":"7.0.1","license":"bsd-2-clause","homepage":"https://github.com/typeslick/json-schema-typed","repository":{"type":"git","url":"git+https://github.com/typeslick/json-schema-typed.git"},"author":{"name":"Jay Rylan","url":"http://jayrylan.com/"},"contributors":[{"name":"Austin Wright","email":"aaa@bzfx.net"},{"name":"Henry Andrews","email":"henry@cloudflare.com"},{"name":"Geraint Luff","email":"luffgd@gmail.com"},{"name":"Jay Rylan","email":"jay@jayrylan.com"}],"main":"./src/index","keywords":["jsonschema","typescript"],"scripts":{"api-check":"npm run build && api-extractor run","build":"pack build","test":"jest","docs":"typedoc --theme markdown --out ./api-docs ./src"},"devDependencies":{"@babel/cli":"^7.5.5","@babel/core":"^7.5.5","@babel/runtime-corejs2":"^7.5.5","@loomble/cspell-dictionary":"^1.0.0","@microsoft/api-extractor":"^7.3.2","@pika/pack":"^0.4.0","@pika/plugin-build-node":"^0.4.0","@pika/plugin-build-types":"^0.4.0","@pika/plugin-build-web":"^0.4.0","@pika/plugin-standard-pkg":"^0.4.0","@types/babel__core":"^7.1.2","@types/jest":"^24.0.15","@types/jest-diff":"^20.0.1","@types/node":"^12.6.8","babel-core":"^6.26.3","babel-jest":"^24.8.0","babel-preset-slick":"^7.0.4","core-js":"^3.1.4","cspell":"^4.0.26","deep-sort-object":"^1.0.2","jest":"^24.8.0","jest-serializer-path":"^0.1.15","prettier":"^1.18.2","tsconfig-slick":"^3.0.2","tslint":"^5.18.0","tslint-slick":"^5.0.0","typedoc":"^0.14.2","typedoc-plugin-markdown":"^2.0.10","typescript":"^3.5.3","typescript-tslint-plugin":"^0.5.4","weak":"^1.0.1"},"@pika/pack":{"pipeline":[["@pika/plugin-standard-pkg",{"exclude":["**/__*__/**/*","**/website/**/*"]}],["@pika/plugin-build-node"],["@pika/plugin-build-web"],["@pika/plugin-build-types"]]},"gitHead":"f733d6f31d3a0217ad363957c7f0b257fbbd011e","bugs":{"url":"https://github.com/typeslick/json-schema-typed/issues"},"_id":"json-schema-typed@7.0.1","_nodeVersion":"11.8.0","_npmVersion":"6.10.1","dist":{"integrity":"sha512-IqUK+Cqc8/MqHsCvv1TMccbKdBzoATOLHXZAF5UDu70/CCxo648cHUig24hc+XTK53TyeNk1UeVTlc2Haovtsw==","shasum":"5e56564b5a0950423e22b285a30ade219e38084d","tarball":"http://registry-npm.ywwl.com/json-schema-typed/download/json-schema-typed-7.0.1.tgz","fileCount":20,"unpackedSize":169723,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdMH9QCRA9TVsSAnZWagAAMDsP/02DSSQ/y4tq/+70uyPG\nW/YDjmtmfRsZdTHgflNf0gMHqhRDa0UxLDUJuQeHDVH6q6tsMEphPTpTNgyD\ndxvvVfrm27xXngggm8XNo7tFjlphq+VWJgWSDoplc3byt/lgK8w4aL9y5Trb\nxanBiBeFFovmgTh4ampojQzF0BjKtefAAsQH9Ql42VpCyWybOXZ2YudeOysE\nMG5xC7aZ+eyM8Tn5sj0JHHHsP87YLsCTFvNl8w2EK5l1oFDGc2ivtlqLM7Q2\nwx1fmMeJdhd6VtFaynmbjuMnzH0WKVJUX9dKqy91lBox2p/bdgBfuL/5scTH\ncSXCIddFVoTV4Hub0hxyZWFWpbsc8a+6vxzJ4xhvLQDaGBjzFa5lDBGI5FSB\n8Y2hPl2wnElOcmV+8mpGXq9Wj3LBAkMag9c3s6+GrLf7K0hExX8XJ5q5xzb4\nfiGODoHLuIak/sdkNKSx4PRIjS3PXDK6V0NTRIb/xjZbVF2L/y1FH8HpIBbC\nc2ve4GikFMlj2oV3FEJ7uIPIkwu7sNkNPWdNX2JL0zPD+X+4xjY6aBlOFfl1\nLwp7FjOuis8PFc2AtGljrisxyNRA55bgiE5px0L0CicNTNSmZDsU1Z+eiXmc\nuh6LKPWPbxImsSBYMh4CkWhNogVjw4C15ABovtMNt8w9VLHrQQfQki5Js92D\nlMzw\r\n=PeKx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGnruoPSXF5t0doCiX42EABug2g+usXIHrtx94jK/6DaAiBmaKnvB09SzGr/DZ/fCUT0hC5hpeIaz4CTZb+2sSMqww=="}],"size":27100,"noattachment":false,"key":"/json-schema-typed/-/json-schema-typed-7.0.1.tgz"},"maintainers":[{"name":"jayrylan","email":"jay@jayrylan.com"}],"_npmUser":{"name":"jayrylan","email":"jay@jayrylan.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-schema-typed_7.0.1_1563459408077_0.1033237121002002"},"_hasShrinkwrap":false,"readme":"[![npm](https://img.shields.io/npm/v/json-schema-typed.svg?style=flat-square)](https://npmjs.org/package/json-schema-typed)\n[![downloads-per-month](https://img.shields.io/npm/dm/json-schema-typed.svg?style=flat-square&label=npm%20downloads)](https://npmjs.org/package/json-schema-typed)\n[![License](https://img.shields.io/badge/license-BSD--2--Clause-blue.svg?style=flat-square)][license]\n\n# JSON Schema Typed\n\nJSON Schema TypeScript definitions with complete inline documentation.\n\n**NOTE:** This library only supports defining schemas. You will need a separate\nlibrary for data validation.\n\nThere are 3 JSON Schema drafts included in this package:\n\n- `draft-07`\n- `draft-2019-09`\n- `draft-2020-12`\n\n## Install\n\n```sh\nnpm install json-schema-typed\n```\n\n## Usage\n\n1. Chose which draft you'd like to import.\n\n- The main package export points to the latest supported stable draft, currently\n  `draft-2020-12`. Future releases that point the main package export to a new\n  draft will always incur a bump to the major semantic version.\n\n  ```ts\n  import { type JSONSchema } from \"json-schema-typed\";\n  ```\n\n- Or you can specify the exact draft you need.\n  ```ts\n  import { type JSONSchema } from \"json-schema-typed/draft-2020-12\";\n  ```\n\n2. Define a schema\n\n   ```ts\n   import { Format, type JSONSchema } from \"json-schema-typed\";\n\n   const schema: JSONSchema = {\n     properties: {\n       email: {\n         format: Format.Email,\n         type: \"string\",\n       },\n     },\n     type: \"object\",\n   };\n\n   // The JSONSchema namespace also provides type-specific narrowed interfaces\n   const stringSchema: JSONSchema.String = {\n     // Only { type: \"string\" } and common keywords are allowed\n     maxLength: 100,\n     type: \"string\",\n   };\n   ```\n\n## Upgrading\n\nVersion `8.0.0` has breaking changes from the previous release.\n\n- Now a\n  [pure ESM package](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).\n- Many exports were renamed. The table below reflects the new export names.\n  These are considered final and unlikely to change in future releases.\n- The `JSONSchema` type was changed from an `interface` to a `type` which is a\n  mixed union that allows `boolean` values in order to properly align with the\n  JSON Schema spec. If you were previously extending the `JSONSchema` interface,\n  you can access the `interface` directly with `JSONSchema.Interface`.\n- The previous main package export pointed to Draft 7. Import it directly if you\n  need to continue using it:\n  ```ts\n  import { type JSONSchema } from \"json-schema-typed/draft-07\";\n  ```\n\n## Exports supported in each draft module\n\n| Name              | Type            | Purpose                                                            |\n| ----------------- | --------------- | ------------------------------------------------------------------ |\n| `$schema`         | `string`        | Draft meta schema URL that can be used with the `$schema` keyword. |\n| `ContentEncoding` | Enum object     | String content encoding strategies.                                |\n| `draft`           | `string`        | Draft version.                                                     |\n| `Format`          | Enum object     | String formats.                                                    |\n| `JSONSchema`      | TypeScript Type | Used to define a JSON Schema.                                      |\n| `keywords`        | `string[]`      | All the keywords for the imported draft.                           |\n| `TypeName`        | Enum object     | Simple type names for the `type` keyword.                          |\n\n## Versioning\n\nThis library follows [semantic versioning](https://semver.org).\n\n---\n\n## Maintainers\n\n- [Jeremy Rylan](https://github.com/jrylan)\n\n## License\n\n[BSD-2-Clause][license]\n\n[license]: https://github.com/jrylan/json-schema-typed/blob/main/dist/node/LICENSE.md\n","publish_time":1563459408235,"_cnpm_publish_time":1563459408235,"dist-tags":{"latest":"9.0.0"}}