UNPKG

json-schema-describes-subset

Version:

Tools for static JSON schema analysis, including functions to determine if one schema describes a subset of another or if a schema describes the empty set or to convert a schema to its disjunctive normal form (DNF).

91 lines (90 loc) 3.43 kB
{ "name": "json-schema-describes-subset", "version": "0.4.0", "type": "module", "author": "Johannes Bohner <johannes.bohner@gmail.com>", "description": "Tools for static JSON schema analysis, including functions to determine if one schema describes a subset of another or if a schema describes the empty set or to convert a schema to its disjunctive normal form (DNF).", "exports": { ".": "./dist/index.js", "./custom-plugins/format-plugin": "./dist/custom-plugins/format-plugin/index.js", "./package.json": "./package.json" }, "files": [ "dist" ], "repository": { "type": "git", "url": "git+https://github.com/jobohner/json-schema-describes-subset.git" }, "license": "MIT", "bugs": { "url": "https://github.com/jobohner/json-schema-describes-subset/issues" }, "homepage": "https://github.com/jobohner/json-schema-describes-subset#readme", "scripts": { "build": "npm run generate-license-file && npm run check && npm run tsc", "build:fix": "npm run generate-license-file && npm run check:fix && npm run tsc", "tsc": "rimraf dist/ && tsx scripts/ts-transform.ts", "format:check": "prettier --check --log-level warn .", "format:write": "prettier --write --log-level warn .", "lint": "eslint --max-warnings 0 --config ./eslint-type-checked.config.js .", "lint:fix": "eslint --max-warnings 0 --fix --config ./eslint-type-checked.config.js .", "check-types": "tsc --noEmit", "test": "vitest run", "test:coverage": "vitest run --coverage", "test:updateSnapshots": "vitest run -u", "check": "npm run format:check && npm run check-types && npm run lint && npm run test:coverage", "check:fix": "npm run format:write && npm run check-types && npm run lint:fix && npm run test:coverage", "generate-license-file": "generate-license-file --input package.json --output third-party-licenses.txt --overwrite --eol lf", "preversion": "git diff-index --quiet HEAD -- && npm run check", "version": "npm run generate-license-file && npm run tsc && git add --all", "prepublishOnly": "git push --follow-tags" }, "devDependencies": { "@jobohner/ts-projects-config-presets": "^0.5.0", "@types/lodash": "^4.17.16", "@types/mdast": "^4.0.4", "@types/unist": "^3.0.3", "anchor-markdown-header": "^0.7.0", "generate-license-file": "^4.0.0", "glob": "^11.0.0", "mdast-util-from-markdown": "^2.0.2", "mdast-util-gfm": "^3.1.0", "mdast-util-to-markdown": "^2.1.2", "mdast-util-to-string": "^4.0.0", "micromark-extension-gfm": "^3.0.0", "rimraf": "^6.0.1", "string-replace-async": "^3.0.2", "ts-morph": "^25.0.1", "tsx": "^4.7.1", "typedoc": "^0.28.2", "typedoc-plugin-markdown": "^4.6.2", "unist-util-filter": "^5.0.1", "unist-util-is": "^6.0.0", "unist-util-visit": "^5.0.0", "vite-tsconfig-paths": "^5.1.4" }, "dependencies": { "ajv": "^8.12.0", "ajv-formats": "^3.0.1", "endent": "^2.1.0", "json-schema-typed": "^8.0.1", "lodash": "^4.17.21" }, "keywords": [ "json schema", "json", "schema", "subset", "superset", "empty set", "json schema dnf", "json schema disjunctive normal form", "dnf", "disjunctive normal form", "json schema canonicalization", "static json schema analysis", "static json schema validation", "static json schema processing" ] }