Skip to content

Commit 900531c

Browse files
Update README.md
1 parent 7c0310e commit 900531c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ const sdk = new SDK({
8989
},
9090
});
9191

92+
const fileBuffer = await fs.readFile("openapi.json");
93+
const fileContent = new Uint8Array(fileBuffer);
94+
9295
async function run() {
9396
const result = await sdk.codesamples.preview({
9497
languages: ["python", "typescript"],
@@ -115,6 +118,9 @@ const sdk = new SDK({
115118
},
116119
});
117120

121+
const fileBuffer = await fs.readFile("openapi.json");
122+
const fileContent = new Uint8Array(fileBuffer);
123+
118124
async function run() {
119125
const resultPost = await sdk.codesamples.previewAsync({
120126
languages: ["python", "typescript"],
@@ -196,6 +202,9 @@ const sdk = new SDK({
196202
},
197203
});
198204

205+
const fileBuffer = await fs.readFile("openapi.json");
206+
const fileContent = new Uint8Array(fileBuffer);
207+
199208
async function run() {
200209
const result = await sdk.codesamples.preview({
201210
languages: ["python", "typescript"],

0 commit comments

Comments
 (0)