diff --git a/package-lock.json b/package-lock.json index 7d8be240..2dee97b4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -386,9 +386,9 @@ } }, "@open-rpc/meta-schema": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/@open-rpc/meta-schema/-/meta-schema-1.5.4.tgz", - "integrity": "sha512-L6vxIp7S+c9JwmOMZcAC85C/tyqYqFskGNv/HU9tjUzbbl4R3GHYBNVNTQaMQXtsD2n4Yw/ReO8gBshyA4vdxQ==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@open-rpc/meta-schema/-/meta-schema-1.6.0.tgz", + "integrity": "sha512-4y9zjF6C3lRBjvKtePInkHFePEPr0VFdHkXNQZI6JG5mvSqLGv+h90+I/EppTlhwN0ECPJjC8uXJv0U1Nj+LZw==", "dev": true }, "@open-rpc/schema-utils-js": { @@ -405,14 +405,6 @@ "isomorphic-fetch": "^2.2.1", "json-schema-ref-parser": "^7.0.1", "lodash": "^4.17.15" - }, - "dependencies": { - "@open-rpc/meta-schema": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@open-rpc/meta-schema/-/meta-schema-1.6.0.tgz", - "integrity": "sha512-4y9zjF6C3lRBjvKtePInkHFePEPr0VFdHkXNQZI6JG5mvSqLGv+h90+I/EppTlhwN0ECPJjC8uXJv0U1Nj+LZw==", - "dev": true - } } }, "@types/babel__core": { diff --git a/package.json b/package.json index ce3bcddd..896f1e31 100644 --- a/package.json +++ b/package.json @@ -24,14 +24,14 @@ "build" ], "devDependencies": { + "@open-rpc/meta-schema": "^1.6.0", + "@open-rpc/schema-utils-js": "^1.12.0", "@types/jest": "^24.0.11", "@types/json-schema": "^7.0.3", "@types/lodash": "^4.14.123", "@types/node": "^13.1.0", "jest": "^24.3.1", "lodash": "^4.17.11", - "@open-rpc/meta-schema": "^1.5.3", - "@open-rpc/schema-utils-js": "^1.11.3", "ts-jest": "^24.0.0", "tslint": "^5.14.0", "typescript": "^3.3.3333" diff --git a/src/index.ts b/src/index.ts index 96e72eca..f4fa5db9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -4,14 +4,12 @@ import petstoreByName from "../service-descriptions/params-by-name-petstore-open import links from "../service-descriptions/link-example-openrpc.json"; import apiWithExamples from "../service-descriptions/api-with-examples-openrpc.json"; import simpleMath from "../service-descriptions/simple-math-openrpc.json"; -import { OpenRPC } from "@open-rpc/meta-schema"; +import { OpenrpcDocument as OpenRPC } from "@open-rpc/meta-schema"; export interface IExamples { [key: string]: OpenRPC; } -const example = petstore as OpenRPC; - const examples: IExamples = { apiWithExamples: apiWithExamples as OpenRPC, links: links as OpenRPC,