Skip to content

Commit 4d87e73

Browse files
fixup! fix enum case key naming for Smithy
1 parent e2d7424 commit 4d87e73

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

packages/quicktype-core/src/language/Smithy4s.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -411,13 +411,13 @@ export class Smithy4sRenderer extends ConvenienceRenderer {
411411
});
412412
}
413413

414-
protected stringForEnumValue(enumCase: string): Sourcelike {
415-
if (typeof enumCase === "string") {
416-
return `"${stringEscape(enumCase)}"`;
417-
} else if (enumCase === null) {
414+
protected stringForEnumValue(enumValue: string): Sourcelike {
415+
if (typeof enumValue === "string") {
416+
return `"${stringEscape(enumValue)}"`;
417+
} else if (enumValue === null) {
418418
return "null";
419419
} else {
420-
return `${enumCase}`;
420+
return `${enumValue}`;
421421
}
422422
}
423423

0 commit comments

Comments
 (0)