File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,9 @@ const sdk = new SDK({
89
89
},
90
90
});
91
91
92
+ const fileBuffer = await fs .readFile (" openapi.json" );
93
+ const fileContent = new Uint8Array (fileBuffer );
94
+
92
95
async function run() {
93
96
const result = await sdk .codesamples .preview ({
94
97
languages: [" python" , " typescript" ],
@@ -115,6 +118,9 @@ const sdk = new SDK({
115
118
},
116
119
});
117
120
121
+ const fileBuffer = await fs .readFile (" openapi.json" );
122
+ const fileContent = new Uint8Array (fileBuffer );
123
+
118
124
async function run() {
119
125
const resultPost = await sdk .codesamples .previewAsync ({
120
126
languages: [" python" , " typescript" ],
@@ -196,6 +202,9 @@ const sdk = new SDK({
196
202
},
197
203
});
198
204
205
+ const fileBuffer = await fs .readFile (" openapi.json" );
206
+ const fileContent = new Uint8Array (fileBuffer );
207
+
199
208
async function run() {
200
209
const result = await sdk .codesamples .preview ({
201
210
languages: [" python" , " typescript" ],
You can’t perform that action at this time.
0 commit comments