{"name":"json-schema-typed","description":"JSONSchema TypeScript definitions.","version":"7.0.3","license":"BSD-2-Clause","pika":true,"sideEffects":false,"keywords":["jsonschema","typescript"],"homepage":"https://github.com/typeslick/json-schema-typed","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"}],"repository":{"type":"git","url":"git+https://github.com/typeslick/json-schema-typed.git"},"dependencies":{},"devDependencies":{"@babel/cli":"7.6.4","@babel/core":"7.6.4","@babel/runtime-corejs2":"7.6.3","@loomble/cspell-dictionary":"1.0.0","@microsoft/api-extractor":"7.3.4","@pika/pack":"0.5.0","@pika/plugin-build-node":"0.7.1","@pika/plugin-build-types":"0.7.1","@pika/plugin-build-web":"0.7.1","@pika/plugin-standard-pkg":"0.7.1","@types/babel__core":"7.1.3","@types/jest":"24.0.20","@types/jest-diff":"20.0.1","@types/node":"12.11.7","babel-core":"6.26.3","babel-jest":"24.9.0","babel-preset-slick":"7.0.4","core-js":"3.3.4","cspell":"4.0.31","deep-sort-object":"1.0.2","jest":"24.9.0","jest-serializer-path":"0.1.15","prettier":"1.18.2","tsconfig-slick":"3.0.2","tslint":"5.20.0","tslint-slick":"5.0.0","typedoc":"0.15.0","typedoc-plugin-markdown":"2.2.11","typescript":"3.6.4","typescript-tslint-plugin":"0.5.4"},"esnext":"dist-src/index.js","main":"dist-node/index.js","module":"dist-web/index.js","types":"dist-types/index.d.ts","bugs":{"url":"https://github.com/typeslick/json-schema-typed/issues"},"_id":"json-schema-typed@7.0.3","_nodeVersion":"12.11.1","_npmVersion":"6.13.1","dist":{"integrity":"sha512-7DE8mpG+/fVw+dTpjbxnx47TaMnDfOI1jwft9g1VybltZCduyRQPJPvc+zzKY9WPHxhPWczyFuYa6I8Mw4iU5A==","shasum":"23ff481b8b4eebcd2ca123b4fa0409e66469a2d9","tarball":"http://registry-npm.ywwl.com/json-schema-typed/download/json-schema-typed-7.0.3.tgz","fileCount":10,"unpackedSize":56923,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd7PtXCRA9TVsSAnZWagAAMV4P+waBwB3/RaBJ1UE2m1Fy\nZxZm50mlY2ZMrhRCTnKjoQpEzfQ/VLkaDwq/82Gd6xnQZXzaO6sjh2mb+eBu\nXuHAykXbsQIZ7z9Szp0ss0DvFjKWF7Sk2WEI6X7zSMNNvFYOccqYsqmTq8BI\nGoPkbexc+go7wjmrIKikmtSpUf6xLAecorSSj8DwWObuPBd3ddaIWRuJ/bHN\nBh4CDEriAxRtN3ISDIi2q+TMFv47/PpCpwn+zY7X4e3/ytLWzje/Fj6mLCv0\nsEV6EhWPvnVqDWtqRMo/gqrnsji4OYdQQJcjUCYgvKPKuttLGPIiEg3bc012\nSZkyuoIu+mIV66rcngywKkjv2dQ42FAKDDgFGaFqDUSy2r84/YlJr1sQPDSF\nW+cJ+Bg+N4tm9XilscWaY3ZSfUS023aRyoReoVKYfy8HTaGcim9ABr19/4gR\nt5oYgdhIosGiACdnjlACedNpdMlmajHTOeruSBkLY12gxa3HZTlJ6K9z0pNZ\np1eUw9sgVM2iQdjeBG0zAzFOkdeRUTZ5ulyxlSCtwVLSv0V2ZjgeF74wWP4L\n+PZWjsmHVPoHmYjS57WWMkuhLcXx8Xn6qLyvGuyotStExAwBsqII0TZLtFZ4\npuJUnTgZDzwULyfkvsPJrs8G5xoeLZuz3f/IHprVqFcLDX/t9ylT/isNyd/P\n72D0\r\n=l7e4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBMA4GhNYRr3cnPOz6OjKWNCRmzoaxonTQol2Ml8gkEOAiB3TiAnOxtPuhjBJ/+ToqA1zSAuzS9vYEs+k8QJGbfSyQ=="}],"size":12642,"noattachment":false,"key":"/json-schema-typed/-/json-schema-typed-7.0.3.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.3_1575811926620_0.21219147110214442"},"_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":1575811926775,"_cnpm_publish_time":1575811926775,"dist-tags":{"latest":"9.0.0"}}