Skip to content

Commit 86c279a

Browse files
authored
Merge pull request #13 from kaleido-io/types
Add generated types from OpenAPI
2 parents 3c48734 + 3108ca6 commit 86c279a

File tree

8 files changed

+10932
-464
lines changed

8 files changed

+10932
-464
lines changed

.eslintrc.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"node": true
2121
},
2222
"ignorePatterns": [
23-
".eslintrc.js"
23+
".eslintrc.js",
24+
"lib/schema.ts"
2425
],
2526
"rules": {
2627
"@typescript-eslint/interface-name-prefix": "off",
@@ -50,4 +51,4 @@
5051
"eol-last": "warn",
5152
"no-trailing-spaces": "warn"
5253
}
53-
}
54+
}

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,16 @@ await firefly.sendBroadcast({
2424
});
2525
```
2626

27+
## Generated schemas
28+
29+
The types for FireFly requests and responses are generated from the OpenAPI schema for FireFly. If you have
30+
the `firefly` repository cloned in a folder parallel to this one, you can run the following to re-generate
31+
the TypeScript interfaces from the latest FireFly definitions:
32+
33+
```bash
34+
npm run schema
35+
```
36+
2737
## Git repositories
2838

2939
There are multiple Git repos making up the Hyperledger FireFly project. Some others

0 commit comments

Comments
 (0)