Skip to content

Commit 2b23454

Browse files
committed
New spec, new code
1 parent 0fc09bf commit 2b23454

File tree

389 files changed

+14324
-6312
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

389 files changed

+14324
-6312
lines changed

code-generator/src/samples.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const buildPath = (s: string): string => {
3232

3333
for (const path of paths.filter((item) => item.operations.length > 0)) {
3434
for (const operation of path.operations) {
35-
const parameters = [];
35+
const parameters: string[] = [];
3636
if (operation.bodyParameters) {
3737
parameters.push(operation.bodyParameters);
3838
}
@@ -114,6 +114,8 @@ rc.authorize(jwtToken);`,
114114
markdown.push("- `result` is of type `byte[]`");
115115
markdown.push(`\n### ❗❗❗ Code sample above may not work
116116
\nPlease refer to [Binary content downloading](/README.md#Binary-content-downloading).`);
117+
} else if (operation.responseSchema.type === "string") {
118+
markdown.push("- `result` is a string");
117119
} else {
118120
console.log(operation);
119121
}

0 commit comments

Comments
 (0)