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({
8989 },
9090});
9191
92+ const fileBuffer = await fs .readFile (" openapi.json" );
93+ const fileContent = new Uint8Array (fileBuffer );
94+
9295async 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+
118124async 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+
199208async function run() {
200209 const result = await sdk .codesamples .preview ({
201210 languages: [" python" , " typescript" ],
You can’t perform that action at this time.
0 commit comments