Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

586 deleting tools #587

Merged
merged 4 commits into from
Jul 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@ package-lock.json
**/dist
coverage
.nyc_output
**/out
packages/td_to_openapi/examples/openapi.yaml
packages/td_to_asyncapi/examples/asyncapi.yaml
**/out
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ Reusable packages:
It uses the official JSON Schema plus additional scripts for aspects that cannot be checked with a JSON Schema alone. It generates a JSON report of the validation results. [NPM](https://www.npmjs.com/package/@thing-description-playground/core).
- [assertions](./packages/assertions/): The assertions package allows to check whether all of the features of the TD standard are present in a single TD or a group of TDs representing an implementation. It needs to be used together with the core package since some features are detected by the core package. [NPM](https://www.npmjs.com/package/@thing-description-playground/assertions).
- [defaults](./packages/defaults/): The defaults package can be used to add or remove explicitly stated default values in a TD. It has no dependency to other playground packages. [NPM](https://www.npmjs.com/package/@thing-description-playground/defaults).
- [td_to_openAPI](./packages/td_to_openAPI): The Open API package allows to create an Open API instance from a Thing Description which has HTTP in the forms. It has no dependency to other playground packages.[NPM](https://www.npmjs.com/package/@thing-description-playground/td_to_openapi).
- [td_to_asyncAPI](./packages/td_to_openAPI): The Async API package allows to create an Async API instance from a Thing Description which has MQTT in the forms. It only depends on the defaults package to add defaults to a TD before generating the Async API instance. [NPM](https://www.npmjs.com/package/@thing-description-playground/td_to_asyncapi).
- [json-spell-checker](./packages/json-spell-checker): The JSON Spell Checker package allows to find spelling mistakes (e.g. action instead of actions) in a JSON document according to its JSON Schema. Such JSON documents could be TDs, Open API specs etc. [NPM](https://www.npmjs.com/package/@thing-description-playground/json-spell-checker).

End Product Packages:

Expand Down
4 changes: 2 additions & 2 deletions packages/cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ const assertMergeResults = require("@thing-description-playground/assertions").m
const assertCheckCoverage = require("@thing-description-playground/assertions").checkCoverage;
const assertResultsToCsv = require("@thing-description-playground/assertions").resultsToCsv;
const { addDefaults, removeDefaults } = require("@thing-description-playground/defaults");
const tdToOAP = require("@thing-description-playground/td_to_openapi");
const tdToAAP = require("@thing-description-playground/td_to_asyncapi");
const tdToOAP = require("@thingweb/open-api-converter");
const tdToAAP = require("@thingweb/async-api-converter");
const commander = require("commander");
const EventEmitter = require("events");
const cliProgress = require("cli-progress");
Expand Down
2,428 changes: 2,225 additions & 203 deletions packages/cli/package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"@thing-description-playground/assertions": "^1.5.0",
"@thing-description-playground/core": "^1.4.0",
"@thing-description-playground/defaults": "^1.4.0",
"@thing-description-playground/td_to_asyncapi": "^1.1.1",
"@thing-description-playground/td_to_openapi": "^1.3.1",
"@thingweb/async-api-converter": "^1.0.0",
"@thingweb/open-api-converter": "^1.0.0",
"cli-progress": "^3.11.2",
"commander": "^9.4.0",
"junit-report-builder": "^3.0.1"
Expand Down
211 changes: 95 additions & 116 deletions packages/core/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"prepare": "npm run bundle"
},
"dependencies": {
"@node-wot/td-tools": "~0.8.5",
"@thingweb/thing-model": "^1.0.1",
"ajv": "^8.11.0",
"ajv-formats": "^2.1.1",
"ajv-formats-draft2019": "^1.6.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,7 @@ async function fetchLinkedTm(td) {
// But it can relate to other tms as well
// Recursively resolve all other tms using node-wot td-tools

const ThingModelHelpers = new (require("@node-wot/td-tools").ThingModelHelpers)();
const ThingModelHelpers = new (require("@thingweb/thing-model").ThingModelHelpers)();

// The tm resolver expects values for placeholders
// However, we don't know (and don't need) them at this moment
Expand Down
4 changes: 0 additions & 4 deletions packages/json-spell-checker/.editorconfig

This file was deleted.

65 changes: 0 additions & 65 deletions packages/json-spell-checker/README.md

This file was deleted.

Loading
Loading