diff --git a/openapi.yaml b/openapi.yaml index ccb8ca02..176431dd 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -281,6 +281,7 @@ components: - $ref: https://raw.githubusercontent.com/asyncapi/spec-json-schemas/master/schemas/2.3.0.json - $ref: https://raw.githubusercontent.com/asyncapi/spec-json-schemas/master/schemas/2.4.0.json - $ref: https://raw.githubusercontent.com/asyncapi/spec-json-schemas/master/schemas/2.5.0.json + - $ref: https://raw.githubusercontent.com/asyncapi/spec-json-schemas/master/schemas/2.6.0.json AsyncAPIDocuments: type: array description: AsyncAPI documents in JSON or YAML. @@ -297,6 +298,7 @@ components: - '2.3.0' - '2.4.0' - '2.5.0' + - '2.6.0' - 'latest' ValidateRequest: diff --git a/package-lock.json b/package-lock.json index 0c938375..1580dcc5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,27 +9,27 @@ "version": "0.0.1", "license": "Apache-2.0", "dependencies": { - "@apidevtools/json-schema-ref-parser": "^9.0.9", + "@apidevtools/json-schema-ref-parser": "^10.1.0", "@asyncapi/avro-schema-parser": "^1.1.0", "@asyncapi/bundler": "^0.3.11", - "@asyncapi/converter": "^1.1.0", - "@asyncapi/diff": "^0.4.0", + "@asyncapi/converter": "^1.2.0", + "@asyncapi/diff": "^0.4.1", "@asyncapi/dotnet-nats-template": "^0.11.0", - "@asyncapi/generator": "^1.9.15", + "@asyncapi/generator": "^1.9.17", "@asyncapi/go-watermill-template": "^0.2.14", - "@asyncapi/html-template": "^0.28.2", - "@asyncapi/java-spring-cloud-stream-template": "^0.13.2", + "@asyncapi/html-template": "^0.28.3", + "@asyncapi/java-spring-cloud-stream-template": "^0.13.4", "@asyncapi/java-spring-template": "^0.28.0", - "@asyncapi/java-template": "^0.1.1", + "@asyncapi/java-template": "^0.2.0", "@asyncapi/markdown-template": "^1.2.1", - "@asyncapi/nodejs-template": "^0.11.4", + "@asyncapi/nodejs-template": "^0.13.1", "@asyncapi/nodejs-ws-template": "^0.9.28", "@asyncapi/openapi-schema-parser": "^2.0.1", - "@asyncapi/parser": "^1.17.2", + "@asyncapi/parser": "^1.18.0", "@asyncapi/problem": "^1.0.0", "@asyncapi/python-paho-template": "^0.2.13", "@asyncapi/raml-dt-schema-parser": "^2.0.1", - "@asyncapi/specs": "^4.0.1", + "@asyncapi/specs": "^4.1.0", "@asyncapi/ts-nats-template": "^0.10.2", "ajv": "^8.8.2", "ajv-formats": "^2.1.1", @@ -95,14 +95,21 @@ } }, "node_modules/@apidevtools/json-schema-ref-parser": { - "version": "9.0.9", - "resolved": "https://registry.npmjs.org/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-9.0.9.tgz", - "integrity": "sha512-GBD2Le9w2+lVFoc4vswGI/TjkNIZSVp7+9xPf+X3uidBfWnAeUWmquteSyt0+VCrhNMWj/FTABISQrD3Z/YA+w==", + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-10.1.0.tgz", + "integrity": "sha512-3e+viyMuXdrcK8v5pvP+SDoAQ77FH6OyRmuK48SZKmdHJRFm87RsSs8qm6kP39a/pOPURByJw+OXzQIqcfmKtA==", "dependencies": { "@jsdevtools/ono": "^7.1.3", - "@types/json-schema": "^7.0.6", - "call-me-maybe": "^1.0.1", - "js-yaml": "^4.1.0" + "@types/json-schema": "^7.0.11", + "@types/lodash.clonedeep": "^4.5.7", + "js-yaml": "^4.1.0", + "lodash.clonedeep": "^4.5.0" + }, + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://github.com/sponsors/philsturgeon" } }, "node_modules/@apidevtools/openapi-schemas": { @@ -185,10 +192,21 @@ "lodash": "^4.17.21" } }, + "node_modules/@asyncapi/bundler/node_modules/@apidevtools/json-schema-ref-parser": { + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-9.1.2.tgz", + "integrity": "sha512-r1w81DpR+KyRWd3f+rk6TNqMgedmAxZP5v5KWlXQWlgMUUtyEJch0DKEci1SorPMiSeM8XPl7MZ3miJ60JIpQg==", + "dependencies": { + "@jsdevtools/ono": "^7.1.3", + "@types/json-schema": "^7.0.6", + "call-me-maybe": "^1.0.1", + "js-yaml": "^4.1.0" + } + }, "node_modules/@asyncapi/converter": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@asyncapi/converter/-/converter-1.1.0.tgz", - "integrity": "sha512-aX8wBHKrXZIWcVEiDvYkRNpYRwuz7U5vzrdStExkNCQvHJlF/eis2Dp7MTt7BvIgN3msfq3HGiCcAAs3oQAaRQ==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@asyncapi/converter/-/converter-1.2.0.tgz", + "integrity": "sha512-Ksil21UrfIWuxa3ETKUCLGnyEZKe/AQSL2y/+V2JpmlHY2gUNcbGBv+uD1CFoWQd6ILkrLYB2R8ZvgpQp4Px5A==", "dependencies": { "js-yaml": "^3.14.1" } @@ -214,9 +232,9 @@ } }, "node_modules/@asyncapi/diff": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/@asyncapi/diff/-/diff-0.4.0.tgz", - "integrity": "sha512-nDHrzyO63U7ymkcpXpGLoJVaahfI5rYg+8iQk/p7Tx+puJrytqL5Bjpbj/e8EXHg5wbqe+XHGRT7GiQ0xON2zQ==", + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@asyncapi/diff/-/diff-0.4.1.tgz", + "integrity": "sha512-KtUvDi59e8IcpAaWh9oHEuH2C41QCIe5ar9hvISJ2c4AmIMLTGRdh7uaph+NEfvZYERz5ze9Ln4UvlY2chbB1g==", "dependencies": { "fast-json-patch": "^3.0.0-1", "js-yaml": "^4.1.0", @@ -233,6 +251,17 @@ "@asyncapi/parserV2": "npm:@asyncapi/parser@v2.0.0-next-major.7" } }, + "node_modules/@asyncapi/dotnet-nats-template/node_modules/@apidevtools/json-schema-ref-parser": { + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-9.1.2.tgz", + "integrity": "sha512-r1w81DpR+KyRWd3f+rk6TNqMgedmAxZP5v5KWlXQWlgMUUtyEJch0DKEci1SorPMiSeM8XPl7MZ3miJ60JIpQg==", + "dependencies": { + "@jsdevtools/ono": "^7.1.3", + "@types/json-schema": "^7.0.6", + "call-me-maybe": "^1.0.1", + "js-yaml": "^4.1.0" + } + }, "node_modules/@asyncapi/dotnet-nats-template/node_modules/@asyncapi/modelina": { "version": "1.0.0-next.29", "resolved": "https://registry.npmjs.org/@asyncapi/modelina/-/modelina-1.0.0-next.29.tgz", @@ -286,14 +315,14 @@ } }, "node_modules/@asyncapi/generator": { - "version": "1.9.15", - "resolved": "https://registry.npmjs.org/@asyncapi/generator/-/generator-1.9.15.tgz", - "integrity": "sha512-3tFfC8A78fSq60da8dQBYkpenlgLEXPiHfyBmAyywowlB13+v9KZUaVgVM1AdmRY8w60MuxJK7DE6M2PUdyuvA==", + "version": "1.9.17", + "resolved": "https://registry.npmjs.org/@asyncapi/generator/-/generator-1.9.17.tgz", + "integrity": "sha512-VHtZn6f+2w0rqFS+0e7QxH7vkyZGbLkuFSNOGWfVGaQqkmtCHY70pYxpF5ojCvMrqAAQyKKKXvzjIfjCabDKhA==", "dependencies": { "@asyncapi/avro-schema-parser": "^1.1.0", "@asyncapi/generator-react-sdk": "^0.2.23", "@asyncapi/openapi-schema-parser": "^2.0.1", - "@asyncapi/parser": "^1.17.1", + "@asyncapi/parser": "^1.18.0", "@asyncapi/raml-dt-schema-parser": "^2.0.1", "@npmcli/arborist": "^2.2.4", "ajv": "^6.10.2", @@ -521,6 +550,17 @@ "@asyncapi/modelina": "^1.1.1" } }, + "node_modules/@asyncapi/go-watermill-template/node_modules/@apidevtools/json-schema-ref-parser": { + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-9.1.2.tgz", + "integrity": "sha512-r1w81DpR+KyRWd3f+rk6TNqMgedmAxZP5v5KWlXQWlgMUUtyEJch0DKEci1SorPMiSeM8XPl7MZ3miJ60JIpQg==", + "dependencies": { + "@jsdevtools/ono": "^7.1.3", + "@types/json-schema": "^7.0.6", + "call-me-maybe": "^1.0.1", + "js-yaml": "^4.1.0" + } + }, "node_modules/@asyncapi/go-watermill-template/node_modules/@asyncapi/modelina": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/@asyncapi/modelina/-/modelina-1.1.1.tgz", @@ -574,12 +614,12 @@ } }, "node_modules/@asyncapi/html-template": { - "version": "0.28.2", - "resolved": "https://registry.npmjs.org/@asyncapi/html-template/-/html-template-0.28.2.tgz", - "integrity": "sha512-8Cpeu6pkCTnbicbVie0TRx+PCLGVREum208MNXruhF5Y6t2yieM4ele9MW/9NE47sZQx121Cmeo2Edjo2QbJDQ==", + "version": "0.28.3", + "resolved": "https://registry.npmjs.org/@asyncapi/html-template/-/html-template-0.28.3.tgz", + "integrity": "sha512-5kYkONLsKkZZ/oqOHbK+VXVhiVnfPtfPEZ72yJfb7cUvT2ZNQshWTfhEU2qqutV9yP23OHsLStEIQCEO1O7myA==", "dependencies": { "@asyncapi/parser": "^1.17.0", - "@asyncapi/react-component": "^1.0.0-next.45", + "@asyncapi/react-component": "^1.0.0-next.47", "highlight.js": "10.7.3", "node-fetch": "^2.6.7", "puppeteer": "^14.1.0", @@ -589,9 +629,9 @@ } }, "node_modules/@asyncapi/java-spring-cloud-stream-template": { - "version": "0.13.2", - "resolved": "https://registry.npmjs.org/@asyncapi/java-spring-cloud-stream-template/-/java-spring-cloud-stream-template-0.13.2.tgz", - "integrity": "sha512-mjXwiGL5X0aF9ZBj37KLgoDaSHk6+AG5zWu4YzYBCOiyGWGqKtQs8cYObkKZe0YOLpz+WPTyjdcU6khlNw6LyQ==", + "version": "0.13.4", + "resolved": "https://registry.npmjs.org/@asyncapi/java-spring-cloud-stream-template/-/java-spring-cloud-stream-template-0.13.4.tgz", + "integrity": "sha512-Xq0QRuRMFfsyFUPYNiiLEgmaO2Ft1eIqW6HPsHV704rLsPY4RTqhy2bMYMbcrCsOEAPa+c19ZhgDlhsZAG61pQ==", "dependencies": { "@asyncapi/generator-filters": "^2.1.0", "@types/node": "^16.7.1", @@ -633,9 +673,9 @@ } }, "node_modules/@asyncapi/java-template": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/@asyncapi/java-template/-/java-template-0.1.1.tgz", - "integrity": "sha512-qrKASRtdkC96oz8J2Bdc7qrQndxRFPCCVmLglDlwbuwDaaKybYZCRXrBGSupl8TZN22vwwOFgWBkpRHuQn6qcA==", + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/@asyncapi/java-template/-/java-template-0.2.0.tgz", + "integrity": "sha512-fIsVxO7DLiN0e8ocGI4NAw+VZ133LuoMkdqEtJ+blBTNL9W4Gezn6yQYtE70jxH2leA7ZXC9azJWTHOTcr4T8g==", "dependencies": { "@asyncapi/generator-filters": "^2.1.0", "@asyncapi/generator-hooks": "^0.1.0", @@ -672,10 +712,21 @@ "node": ">=14" } }, + "node_modules/@asyncapi/modelina/node_modules/@apidevtools/json-schema-ref-parser": { + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-9.1.2.tgz", + "integrity": "sha512-r1w81DpR+KyRWd3f+rk6TNqMgedmAxZP5v5KWlXQWlgMUUtyEJch0DKEci1SorPMiSeM8XPl7MZ3miJ60JIpQg==", + "dependencies": { + "@jsdevtools/ono": "^7.1.3", + "@types/json-schema": "^7.0.6", + "call-me-maybe": "^1.0.1", + "js-yaml": "^4.1.0" + } + }, "node_modules/@asyncapi/nodejs-template": { - "version": "0.11.4", - "resolved": "https://registry.npmjs.org/@asyncapi/nodejs-template/-/nodejs-template-0.11.4.tgz", - "integrity": "sha512-vH8WKtxQ+XPDh/cVO34OTpYBpUAExGIFkVGAMH+l5fG5VEzHnWDD7DjPT9DcPLQigIRHjsUnFCBehROO8B4Khg==", + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/@asyncapi/nodejs-template/-/nodejs-template-0.13.1.tgz", + "integrity": "sha512-yJ5TJXLtGxHs0FzjQfJwnLH2hrQe6EDMBfrKUE9ALWN9THQcydLhCNj2uhjcXQouj0TxP+NUrYKRyHrJ5nbu3g==", "dependencies": { "@asyncapi/generator-filters": "^2.1.0", "@asyncapi/generator-hooks": "^0.1.0", @@ -702,12 +753,12 @@ } }, "node_modules/@asyncapi/parser": { - "version": "1.17.2", - "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-1.17.2.tgz", - "integrity": "sha512-xI9GShIuQVfBz5IZ2c9h6cxcPTnfzI1fch6kYL+nF68Q3U669Un0K0TSeyEa57EfhTap53UIRTj7gFIM9QZTNQ==", + "version": "1.18.0", + "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-1.18.0.tgz", + "integrity": "sha512-FbcYjXNhBBAnDVHUR87MLtCtnTim7DzLq04y3D3wHQEVhITGqROxslbEDqnLEpssqJl/aBCsW21CGocDJT/q4g==", "dependencies": { "@apidevtools/json-schema-ref-parser": "^9.0.6", - "@asyncapi/specs": "^4.0.1", + "@asyncapi/specs": "^4.1.0", "@fmvilas/pseudo-yaml-ast": "^0.3.1", "ajv": "^6.10.1", "js-yaml": "^3.13.1", @@ -717,6 +768,33 @@ "tiny-merge-patch": "^0.1.2" } }, + "node_modules/@asyncapi/parser/node_modules/@apidevtools/json-schema-ref-parser": { + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-9.1.2.tgz", + "integrity": "sha512-r1w81DpR+KyRWd3f+rk6TNqMgedmAxZP5v5KWlXQWlgMUUtyEJch0DKEci1SorPMiSeM8XPl7MZ3miJ60JIpQg==", + "dependencies": { + "@jsdevtools/ono": "^7.1.3", + "@types/json-schema": "^7.0.6", + "call-me-maybe": "^1.0.1", + "js-yaml": "^4.1.0" + } + }, + "node_modules/@asyncapi/parser/node_modules/@apidevtools/json-schema-ref-parser/node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" + }, + "node_modules/@asyncapi/parser/node_modules/@apidevtools/json-schema-ref-parser/node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, "node_modules/@asyncapi/parser/node_modules/ajv": { "version": "6.12.6", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", @@ -875,13 +953,13 @@ } }, "node_modules/@asyncapi/react-component": { - "version": "1.0.0-next.45", - "resolved": "https://registry.npmjs.org/@asyncapi/react-component/-/react-component-1.0.0-next.45.tgz", - "integrity": "sha512-fpGgH0dsOllHvDnW5Qc3+mmcTc7TJSTiGTc25ikORkYZeFfH+dM6Kva+wh+xC56vIW9sJ2jzvm1cmAOP6F9Xnw==", + "version": "1.0.0-next.47", + "resolved": "https://registry.npmjs.org/@asyncapi/react-component/-/react-component-1.0.0-next.47.tgz", + "integrity": "sha512-zVktJkXEwDFAcI3gyN33QyC+e7l2g+yHt6vbht5xCMniH1PqkPvQczDUwEfY47lpHAJn7YYGMT4XpiipzIPtlw==", "dependencies": { - "@asyncapi/avro-schema-parser": "^0.3.0", - "@asyncapi/openapi-schema-parser": "^2.0.0", - "@asyncapi/parser": "^1.17.0", + "@asyncapi/avro-schema-parser": "^1.1.0", + "@asyncapi/openapi-schema-parser": "^2.0.1", + "@asyncapi/parser": "^1.18.0", "highlight.js": "^10.7.2", "isomorphic-dompurify": "^0.13.0", "marked": "^4.0.14", @@ -893,11 +971,6 @@ "react-dom": ">=16.8.0" } }, - "node_modules/@asyncapi/react-component/node_modules/@asyncapi/avro-schema-parser": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/@asyncapi/avro-schema-parser/-/avro-schema-parser-0.3.0.tgz", - "integrity": "sha512-gWAqS2CKxbChdX8hZY+5EYQl6atP8FTSBvoG5mGGQ89XUoNdlLX14lsvbgvBnDj5sSwqfs+b5Mh5PUZMR/8maA==" - }, "node_modules/@asyncapi/react-component/node_modules/openapi-sampler": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/openapi-sampler/-/openapi-sampler-1.3.1.tgz", @@ -908,9 +981,9 @@ } }, "node_modules/@asyncapi/specs": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-4.0.1.tgz", - "integrity": "sha512-3sKw49Y/TeKT/FO2YX/DlyOekytko5KFwNJ3zMPmai+pyhz3gux2p5zV5kGJRCwApI1gX0GJw6p15a6CZgg01w==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-4.1.0.tgz", + "integrity": "sha512-2arh2J4vGUkgx7Y8zB2UMdYpgYiL4P+Te1Na5Yi9IEDe6UBVwOGFYK8MR7HZ0/oInHQFygpuouAjHnIifoZykg==", "dependencies": { "@types/json-schema": "^7.0.11" } @@ -4819,6 +4892,19 @@ "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==" }, + "node_modules/@types/lodash": { + "version": "4.14.191", + "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.191.tgz", + "integrity": "sha512-BdZ5BCCvho3EIXw6wUCXHe7rS53AIDPLE+JzwgT+OsJk53oBfbSmZZ7CX4VaRoN78N+TJpFi9QPlfIVNmJYWxQ==" + }, + "node_modules/@types/lodash.clonedeep": { + "version": "4.5.7", + "resolved": "https://registry.npmjs.org/@types/lodash.clonedeep/-/lodash.clonedeep-4.5.7.tgz", + "integrity": "sha512-ccNqkPptFIXrpVqUECi60/DFxjNKsfoQxSQsgcBJCX/fuX1wgyQieojkcWH/KpE3xzLoWN/2k+ZeGqIN3paSvw==", + "dependencies": { + "@types/lodash": "*" + } + }, "node_modules/@types/mime": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.2.tgz", @@ -20714,14 +20800,15 @@ } }, "@apidevtools/json-schema-ref-parser": { - "version": "9.0.9", - "resolved": "https://registry.npmjs.org/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-9.0.9.tgz", - "integrity": "sha512-GBD2Le9w2+lVFoc4vswGI/TjkNIZSVp7+9xPf+X3uidBfWnAeUWmquteSyt0+VCrhNMWj/FTABISQrD3Z/YA+w==", + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-10.1.0.tgz", + "integrity": "sha512-3e+viyMuXdrcK8v5pvP+SDoAQ77FH6OyRmuK48SZKmdHJRFm87RsSs8qm6kP39a/pOPURByJw+OXzQIqcfmKtA==", "requires": { "@jsdevtools/ono": "^7.1.3", - "@types/json-schema": "^7.0.6", - "call-me-maybe": "^1.0.1", - "js-yaml": "^4.1.0" + "@types/json-schema": "^7.0.11", + "@types/lodash.clonedeep": "^4.5.7", + "js-yaml": "^4.1.0", + "lodash.clonedeep": "^4.5.0" } }, "@apidevtools/openapi-schemas": { @@ -20795,12 +20882,25 @@ "js-yaml": "^4.1.0", "jsonpath-plus": "^6.0.1", "lodash": "^4.17.21" + }, + "dependencies": { + "@apidevtools/json-schema-ref-parser": { + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-9.1.2.tgz", + "integrity": "sha512-r1w81DpR+KyRWd3f+rk6TNqMgedmAxZP5v5KWlXQWlgMUUtyEJch0DKEci1SorPMiSeM8XPl7MZ3miJ60JIpQg==", + "requires": { + "@jsdevtools/ono": "^7.1.3", + "@types/json-schema": "^7.0.6", + "call-me-maybe": "^1.0.1", + "js-yaml": "^4.1.0" + } + } } }, "@asyncapi/converter": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@asyncapi/converter/-/converter-1.1.0.tgz", - "integrity": "sha512-aX8wBHKrXZIWcVEiDvYkRNpYRwuz7U5vzrdStExkNCQvHJlF/eis2Dp7MTt7BvIgN3msfq3HGiCcAAs3oQAaRQ==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@asyncapi/converter/-/converter-1.2.0.tgz", + "integrity": "sha512-Ksil21UrfIWuxa3ETKUCLGnyEZKe/AQSL2y/+V2JpmlHY2gUNcbGBv+uD1CFoWQd6ILkrLYB2R8ZvgpQp4Px5A==", "requires": { "js-yaml": "^3.14.1" }, @@ -20825,9 +20925,9 @@ } }, "@asyncapi/diff": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/@asyncapi/diff/-/diff-0.4.0.tgz", - "integrity": "sha512-nDHrzyO63U7ymkcpXpGLoJVaahfI5rYg+8iQk/p7Tx+puJrytqL5Bjpbj/e8EXHg5wbqe+XHGRT7GiQ0xON2zQ==", + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@asyncapi/diff/-/diff-0.4.1.tgz", + "integrity": "sha512-KtUvDi59e8IcpAaWh9oHEuH2C41QCIe5ar9hvISJ2c4AmIMLTGRdh7uaph+NEfvZYERz5ze9Ln4UvlY2chbB1g==", "requires": { "fast-json-patch": "^3.0.0-1", "js-yaml": "^4.1.0", @@ -20844,6 +20944,17 @@ "@asyncapi/parserV2": "npm:@asyncapi/parser@v2.0.0-next-major.7" }, "dependencies": { + "@apidevtools/json-schema-ref-parser": { + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-9.1.2.tgz", + "integrity": "sha512-r1w81DpR+KyRWd3f+rk6TNqMgedmAxZP5v5KWlXQWlgMUUtyEJch0DKEci1SorPMiSeM8XPl7MZ3miJ60JIpQg==", + "requires": { + "@jsdevtools/ono": "^7.1.3", + "@types/json-schema": "^7.0.6", + "call-me-maybe": "^1.0.1", + "js-yaml": "^4.1.0" + } + }, "@asyncapi/modelina": { "version": "1.0.0-next.29", "resolved": "https://registry.npmjs.org/@asyncapi/modelina/-/modelina-1.0.0-next.29.tgz", @@ -20893,14 +21004,14 @@ } }, "@asyncapi/generator": { - "version": "1.9.15", - "resolved": "https://registry.npmjs.org/@asyncapi/generator/-/generator-1.9.15.tgz", - "integrity": "sha512-3tFfC8A78fSq60da8dQBYkpenlgLEXPiHfyBmAyywowlB13+v9KZUaVgVM1AdmRY8w60MuxJK7DE6M2PUdyuvA==", + "version": "1.9.17", + "resolved": "https://registry.npmjs.org/@asyncapi/generator/-/generator-1.9.17.tgz", + "integrity": "sha512-VHtZn6f+2w0rqFS+0e7QxH7vkyZGbLkuFSNOGWfVGaQqkmtCHY70pYxpF5ojCvMrqAAQyKKKXvzjIfjCabDKhA==", "requires": { "@asyncapi/avro-schema-parser": "^1.1.0", "@asyncapi/generator-react-sdk": "^0.2.23", "@asyncapi/openapi-schema-parser": "^2.0.1", - "@asyncapi/parser": "^1.17.1", + "@asyncapi/parser": "^1.18.0", "@asyncapi/raml-dt-schema-parser": "^2.0.1", "@npmcli/arborist": "^2.2.4", "ajv": "^6.10.2", @@ -21093,6 +21204,17 @@ "@asyncapi/modelina": "^1.1.1" }, "dependencies": { + "@apidevtools/json-schema-ref-parser": { + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-9.1.2.tgz", + "integrity": "sha512-r1w81DpR+KyRWd3f+rk6TNqMgedmAxZP5v5KWlXQWlgMUUtyEJch0DKEci1SorPMiSeM8XPl7MZ3miJ60JIpQg==", + "requires": { + "@jsdevtools/ono": "^7.1.3", + "@types/json-schema": "^7.0.6", + "call-me-maybe": "^1.0.1", + "js-yaml": "^4.1.0" + } + }, "@asyncapi/modelina": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/@asyncapi/modelina/-/modelina-1.1.1.tgz", @@ -21142,12 +21264,12 @@ } }, "@asyncapi/html-template": { - "version": "0.28.2", - "resolved": "https://registry.npmjs.org/@asyncapi/html-template/-/html-template-0.28.2.tgz", - "integrity": "sha512-8Cpeu6pkCTnbicbVie0TRx+PCLGVREum208MNXruhF5Y6t2yieM4ele9MW/9NE47sZQx121Cmeo2Edjo2QbJDQ==", + "version": "0.28.3", + "resolved": "https://registry.npmjs.org/@asyncapi/html-template/-/html-template-0.28.3.tgz", + "integrity": "sha512-5kYkONLsKkZZ/oqOHbK+VXVhiVnfPtfPEZ72yJfb7cUvT2ZNQshWTfhEU2qqutV9yP23OHsLStEIQCEO1O7myA==", "requires": { "@asyncapi/parser": "^1.17.0", - "@asyncapi/react-component": "^1.0.0-next.45", + "@asyncapi/react-component": "^1.0.0-next.47", "highlight.js": "10.7.3", "node-fetch": "^2.6.7", "puppeteer": "^14.1.0", @@ -21157,9 +21279,9 @@ } }, "@asyncapi/java-spring-cloud-stream-template": { - "version": "0.13.2", - "resolved": "https://registry.npmjs.org/@asyncapi/java-spring-cloud-stream-template/-/java-spring-cloud-stream-template-0.13.2.tgz", - "integrity": "sha512-mjXwiGL5X0aF9ZBj37KLgoDaSHk6+AG5zWu4YzYBCOiyGWGqKtQs8cYObkKZe0YOLpz+WPTyjdcU6khlNw6LyQ==", + "version": "0.13.4", + "resolved": "https://registry.npmjs.org/@asyncapi/java-spring-cloud-stream-template/-/java-spring-cloud-stream-template-0.13.4.tgz", + "integrity": "sha512-Xq0QRuRMFfsyFUPYNiiLEgmaO2Ft1eIqW6HPsHV704rLsPY4RTqhy2bMYMbcrCsOEAPa+c19ZhgDlhsZAG61pQ==", "requires": { "@asyncapi/generator-filters": "^2.1.0", "@types/node": "^16.7.1", @@ -21200,9 +21322,9 @@ } }, "@asyncapi/java-template": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/@asyncapi/java-template/-/java-template-0.1.1.tgz", - "integrity": "sha512-qrKASRtdkC96oz8J2Bdc7qrQndxRFPCCVmLglDlwbuwDaaKybYZCRXrBGSupl8TZN22vwwOFgWBkpRHuQn6qcA==", + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/@asyncapi/java-template/-/java-template-0.2.0.tgz", + "integrity": "sha512-fIsVxO7DLiN0e8ocGI4NAw+VZ133LuoMkdqEtJ+blBTNL9W4Gezn6yQYtE70jxH2leA7ZXC9azJWTHOTcr4T8g==", "requires": { "@asyncapi/generator-filters": "^2.1.0", "@asyncapi/generator-hooks": "^0.1.0", @@ -21231,12 +21353,25 @@ "change-case": "^4.1.2", "openapi-types": "9.3.0", "typescript-json-schema": "^0.53.0" + }, + "dependencies": { + "@apidevtools/json-schema-ref-parser": { + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-9.1.2.tgz", + "integrity": "sha512-r1w81DpR+KyRWd3f+rk6TNqMgedmAxZP5v5KWlXQWlgMUUtyEJch0DKEci1SorPMiSeM8XPl7MZ3miJ60JIpQg==", + "requires": { + "@jsdevtools/ono": "^7.1.3", + "@types/json-schema": "^7.0.6", + "call-me-maybe": "^1.0.1", + "js-yaml": "^4.1.0" + } + } } }, "@asyncapi/nodejs-template": { - "version": "0.11.4", - "resolved": "https://registry.npmjs.org/@asyncapi/nodejs-template/-/nodejs-template-0.11.4.tgz", - "integrity": "sha512-vH8WKtxQ+XPDh/cVO34OTpYBpUAExGIFkVGAMH+l5fG5VEzHnWDD7DjPT9DcPLQigIRHjsUnFCBehROO8B4Khg==", + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/@asyncapi/nodejs-template/-/nodejs-template-0.13.1.tgz", + "integrity": "sha512-yJ5TJXLtGxHs0FzjQfJwnLH2hrQe6EDMBfrKUE9ALWN9THQcydLhCNj2uhjcXQouj0TxP+NUrYKRyHrJ5nbu3g==", "requires": { "@asyncapi/generator-filters": "^2.1.0", "@asyncapi/generator-hooks": "^0.1.0", @@ -21263,12 +21398,12 @@ } }, "@asyncapi/parser": { - "version": "1.17.2", - "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-1.17.2.tgz", - "integrity": "sha512-xI9GShIuQVfBz5IZ2c9h6cxcPTnfzI1fch6kYL+nF68Q3U669Un0K0TSeyEa57EfhTap53UIRTj7gFIM9QZTNQ==", + "version": "1.18.0", + "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-1.18.0.tgz", + "integrity": "sha512-FbcYjXNhBBAnDVHUR87MLtCtnTim7DzLq04y3D3wHQEVhITGqROxslbEDqnLEpssqJl/aBCsW21CGocDJT/q4g==", "requires": { "@apidevtools/json-schema-ref-parser": "^9.0.6", - "@asyncapi/specs": "^4.0.1", + "@asyncapi/specs": "^4.1.0", "@fmvilas/pseudo-yaml-ast": "^0.3.1", "ajv": "^6.10.1", "js-yaml": "^3.13.1", @@ -21278,6 +21413,32 @@ "tiny-merge-patch": "^0.1.2" }, "dependencies": { + "@apidevtools/json-schema-ref-parser": { + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-9.1.2.tgz", + "integrity": "sha512-r1w81DpR+KyRWd3f+rk6TNqMgedmAxZP5v5KWlXQWlgMUUtyEJch0DKEci1SorPMiSeM8XPl7MZ3miJ60JIpQg==", + "requires": { + "@jsdevtools/ono": "^7.1.3", + "@types/json-schema": "^7.0.6", + "call-me-maybe": "^1.0.1", + "js-yaml": "^4.1.0" + }, + "dependencies": { + "argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" + }, + "js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "requires": { + "argparse": "^2.0.1" + } + } + } + }, "ajv": { "version": "6.12.6", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", @@ -21426,13 +21587,13 @@ } }, "@asyncapi/react-component": { - "version": "1.0.0-next.45", - "resolved": "https://registry.npmjs.org/@asyncapi/react-component/-/react-component-1.0.0-next.45.tgz", - "integrity": "sha512-fpGgH0dsOllHvDnW5Qc3+mmcTc7TJSTiGTc25ikORkYZeFfH+dM6Kva+wh+xC56vIW9sJ2jzvm1cmAOP6F9Xnw==", + "version": "1.0.0-next.47", + "resolved": "https://registry.npmjs.org/@asyncapi/react-component/-/react-component-1.0.0-next.47.tgz", + "integrity": "sha512-zVktJkXEwDFAcI3gyN33QyC+e7l2g+yHt6vbht5xCMniH1PqkPvQczDUwEfY47lpHAJn7YYGMT4XpiipzIPtlw==", "requires": { - "@asyncapi/avro-schema-parser": "^0.3.0", - "@asyncapi/openapi-schema-parser": "^2.0.0", - "@asyncapi/parser": "^1.17.0", + "@asyncapi/avro-schema-parser": "^1.1.0", + "@asyncapi/openapi-schema-parser": "^2.0.1", + "@asyncapi/parser": "^1.18.0", "highlight.js": "^10.7.2", "isomorphic-dompurify": "^0.13.0", "marked": "^4.0.14", @@ -21440,11 +21601,6 @@ "use-resize-observer": "^8.0.0" }, "dependencies": { - "@asyncapi/avro-schema-parser": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/@asyncapi/avro-schema-parser/-/avro-schema-parser-0.3.0.tgz", - "integrity": "sha512-gWAqS2CKxbChdX8hZY+5EYQl6atP8FTSBvoG5mGGQ89XUoNdlLX14lsvbgvBnDj5sSwqfs+b5Mh5PUZMR/8maA==" - }, "openapi-sampler": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/openapi-sampler/-/openapi-sampler-1.3.1.tgz", @@ -21457,9 +21613,9 @@ } }, "@asyncapi/specs": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-4.0.1.tgz", - "integrity": "sha512-3sKw49Y/TeKT/FO2YX/DlyOekytko5KFwNJ3zMPmai+pyhz3gux2p5zV5kGJRCwApI1gX0GJw6p15a6CZgg01w==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-4.1.0.tgz", + "integrity": "sha512-2arh2J4vGUkgx7Y8zB2UMdYpgYiL4P+Te1Na5Yi9IEDe6UBVwOGFYK8MR7HZ0/oInHQFygpuouAjHnIifoZykg==", "requires": { "@types/json-schema": "^7.0.11" } @@ -24364,6 +24520,19 @@ "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==" }, + "@types/lodash": { + "version": "4.14.191", + "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.191.tgz", + "integrity": "sha512-BdZ5BCCvho3EIXw6wUCXHe7rS53AIDPLE+JzwgT+OsJk53oBfbSmZZ7CX4VaRoN78N+TJpFi9QPlfIVNmJYWxQ==" + }, + "@types/lodash.clonedeep": { + "version": "4.5.7", + "resolved": "https://registry.npmjs.org/@types/lodash.clonedeep/-/lodash.clonedeep-4.5.7.tgz", + "integrity": "sha512-ccNqkPptFIXrpVqUECi60/DFxjNKsfoQxSQsgcBJCX/fuX1wgyQieojkcWH/KpE3xzLoWN/2k+ZeGqIN3paSvw==", + "requires": { + "@types/lodash": "*" + } + }, "@types/mime": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.2.tgz", diff --git a/package.json b/package.json index 13100838..96ad4790 100644 --- a/package.json +++ b/package.json @@ -40,27 +40,27 @@ "release": "npm run generate:docker && semantic-release" }, "dependencies": { - "@apidevtools/json-schema-ref-parser": "^9.0.9", + "@apidevtools/json-schema-ref-parser": "^10.1.0", "@asyncapi/avro-schema-parser": "^1.1.0", "@asyncapi/bundler": "^0.3.11", - "@asyncapi/converter": "^1.1.0", - "@asyncapi/diff": "^0.4.0", + "@asyncapi/converter": "^1.2.0", + "@asyncapi/diff": "^0.4.1", "@asyncapi/dotnet-nats-template": "^0.11.0", - "@asyncapi/generator": "^1.9.15", + "@asyncapi/generator": "^1.9.17", "@asyncapi/go-watermill-template": "^0.2.14", - "@asyncapi/html-template": "^0.28.2", - "@asyncapi/java-spring-cloud-stream-template": "^0.13.2", + "@asyncapi/html-template": "^0.28.3", + "@asyncapi/java-spring-cloud-stream-template": "^0.13.4", "@asyncapi/java-spring-template": "^0.28.0", - "@asyncapi/java-template": "^0.1.1", + "@asyncapi/java-template": "^0.2.0", "@asyncapi/markdown-template": "^1.2.1", - "@asyncapi/nodejs-template": "^0.11.4", + "@asyncapi/nodejs-template": "^0.13.1", "@asyncapi/nodejs-ws-template": "^0.9.28", "@asyncapi/openapi-schema-parser": "^2.0.1", - "@asyncapi/parser": "^1.17.2", + "@asyncapi/parser": "^1.18.0", "@asyncapi/problem": "^1.0.0", "@asyncapi/python-paho-template": "^0.2.13", "@asyncapi/raml-dt-schema-parser": "^2.0.1", - "@asyncapi/specs": "^4.0.1", + "@asyncapi/specs": "^4.1.0", "@asyncapi/ts-nats-template": "^0.10.2", "ajv": "^8.8.2", "ajv-formats": "^2.1.1", diff --git a/src/controllers/tests/convert.controller.test.ts b/src/controllers/tests/convert.controller.test.ts index 2fd6240f..45ee9406 100644 --- a/src/controllers/tests/convert.controller.test.ts +++ b/src/controllers/tests/convert.controller.test.ts @@ -24,7 +24,7 @@ const validJsonAsyncAPI2_1_0 = { channels: {} }; -const validYamlAsyncAPI2_3_0 = ` +const validYamlAsyncAPI2_4_0 = ` asyncapi: 2.4.0 info: title: Super test @@ -120,7 +120,7 @@ describe('ConvertController', () => { }) .expect(200, { converted: { - asyncapi: '2.5.0', + asyncapi: '2.6.0', info: { title: 'Super test', version: '1.0.0' @@ -142,7 +142,7 @@ describe('ConvertController', () => { language: 'yaml' }) .expect(200, { - converted: validYamlAsyncAPI2_3_0.trimStart(), + converted: validYamlAsyncAPI2_4_0.trimStart(), }); }); }); diff --git a/src/server.ts b/src/server.ts index 5a9446d0..f090e523 100644 --- a/src/server.ts +++ b/src/server.ts @@ -2,7 +2,7 @@ import './configs/production.json'; // for `config` module -process.env['NODE_CONFIG_DIR'] = `${__dirname }/configs`; +process.env['NODE_CONFIG_DIR'] = `${__dirname}/configs`; import { App } from './app'; import { ValidateController } from './controllers/validate.controller'; diff --git a/src/services/tests/convert.service.test.ts b/src/services/tests/convert.service.test.ts index 5a8adf9c..2faeb809 100644 --- a/src/services/tests/convert.service.test.ts +++ b/src/services/tests/convert.service.test.ts @@ -64,7 +64,7 @@ describe('ConvertService', () => { const converted = await convertService.convert(validJsonAsyncAPI2_0_0); expect(converted).toEqual({ - asyncapi: '2.5.0', + asyncapi: '2.6.0', info: { title: 'Super test', version: '1.0.0'