{"name":"json-schema-typed","description":"JSONSchema TypeScript definitions.","version":"7.0.0","license":"BSD-2-Clause","esnext":"dist-src/index.js","main":"dist-node/index.js","module":"dist-web/index.js","types":"dist-types/index.d.ts","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.2.3","@babel/core":"^7.2.2","@babel/runtime-corejs2":"^7.2.0","@loomble/cspell-dictionary":"*","@microsoft/api-extractor":"^7.0.17","@pika/pack":"^0.3.2","@pika/plugin-build-node":"^0.3.11","@pika/plugin-build-types":"^0.3.11","@pika/plugin-build-web":"^0.3.11","@pika/plugin-standard-pkg":"^0.3.11","@types/babel__core":"^7.0.4","@types/jest":"^24.0.6","@types/jest-diff":"^20.0.1","@types/node":"^11.9.4","babel-core":"^7.0.0-bridge.0","babel-jest":"^24.1.0","babel-preset-slick":"^7.0.4","core-js":"^2.6.0","cspell":"^3.1.3","deep-sort-object":"^1.0.2","jest":"^24.1.0","jest-serializer-path":"^0.1.15","prettier":"^1.15.3","tsconfig-slick":"^3.0.2","tslint":"^5.11.0","tslint-slick":"^5.0.0","typedoc":"^0.14.2","typedoc-plugin-markdown":"^1.1.26","typescript":"^3.2.2","typescript-tslint-plugin":"^0.3.1","weak":"^1.0.1"},"bugs":{"url":"https://github.com/typeslick/json-schema-typed/issues"},"_id":"json-schema-typed@7.0.0","_nodeVersion":"11.8.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-ikVqF4dlAgRvAb3MDAgDQRtB/GIC8+iq+z5bczPh9bUT7bAZCdGfGCypJHBquzZNoxebql1UgPxWbImnvkSuJg==","shasum":"714f3bb539637644b8cb9c99a097c4ee8f8e8c8f","tarball":"http://registry-npm.ywwl.com/json-schema-typed/download/json-schema-typed-7.0.0.tgz","fileCount":8,"unpackedSize":48369,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcbQz1CRA9TVsSAnZWagAAoXgP+gOUFk13Wf5+sfyhKgSY\n8d1gcx16DITFOhN0U9JmJxDUfBVUWfq+1mxBlmkyfz4yrI0wSYWdUzvPnBAo\ntC2bE+drwgWvAtLhrWy5TlPm7g5jKzmTEiofWO1ZGkzKFoc167osJPMbFfDJ\nIkrwaMFVCUczSyEfB8XP6En1HwQ1ERXcx14w+J/kbDOuhGlN/RmzFHWyOwMN\nRmY5X1R5QiV76GVnBkwcyMwG+ncKg/ht73PSqqpuY0KXD04dcy6PLWDHv/Q8\n98gpJFK19yLdW2zH80rZih6YS/pYHfeJWJ8FiZtxWKLTRmjfH/LIlLL1oweC\nie11aKyfRfBRsIT9HhYsxUhZAl6j6EzA2bEMQtypCvm/nkPiif3uNiYMCmJl\n2KYgqoIItGDOTVZOQQJpyh1HYqr4/CL7MK+kKa9vdiaNK4NU0pqmsqJX5MjE\nYwfQCne32s15+1JjM46vdOK7ncHgQMdoWff9dIgsk8pwr3Kqi20iOUJldlfs\nzdQ76eJWwWGlB+w/d5JiYUxjTRh+8Ec3nU6esRfrJPIT5ua+9KEb7q8wlFvp\nQqMXlDwoqUxDgETxZk8Dae5xeauoEwd6U3s5wdLZpKuNx2HUSGuGy2uLNXdh\n8NuqDuhyruGB8mJ+zDXf/rJge3tosVsmmZaMwyncHq+LqjWpUpEnzCvVMS2S\nk/KI\r\n=drQa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDkzO7qqeQcA1Rbh+mAagFReuzJJTwYGeBPM9gbvSzHYAIgRaZccBrTYaGzxQQxNBXIR648cJSn0V4mqtVk6Aj9qBI="}],"size":11627,"noattachment":false,"key":"/json-schema-typed/-/json-schema-typed-7.0.0.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.0_1550650612410_0.481378480813627"},"_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":1550650612625,"_cnpm_publish_time":1550650612625,"dist-tags":{"latest":"9.0.0"}}