Skip to content

Commit

Permalink
Merge pull request #293 from open-rpc/fix/meta-schema-update
Browse files Browse the repository at this point in the history
fix: update to new meta-schema
  • Loading branch information
BelfordZ authored Jan 16, 2020
2 parents 2bcdd7b + 38273d3 commit 9e1e95b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 16 deletions.
14 changes: 3 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 1 addition & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9e1e95b

Please sign in to comment.