Skip to content

Commit 158c2b8

Browse files
committed
rename schema exports with schema suffix
1 parent 656eedd commit 158c2b8

File tree

1 file changed

+8
-3
lines changed
  • smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/schema

1 file changed

+8
-3
lines changed

smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/schema/SchemaGenerator.java

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,15 @@ private void writeStructureSchema(StructureShape shape) {
129129
if (shape.hasTrait(ErrorTrait.class)) {
130130
writer.addTypeImport("StaticErrorSchema", null, TypeScriptDependency.SMITHY_TYPES);
131131
writer.addRelativeImport(exceptionCtorSymbolName, null, Paths.get("..", "models", "errors"));
132-
writer.openBlock("""
133-
export var $L: StaticErrorSchema = [-3, $L, $L,""", "];",
132+
writer.openBlock(
133+
"""
134+
export var $L: StaticErrorSchema = [-3, $L, $L,""",
135+
"];",
134136
getShapeVariableName(shape),
135-
store.var(shape.getId().getNamespace(), "n"), store.var(shape.getId().getName()), () -> doWithMembers(shape));
137+
store.var(shape.getId().getNamespace(), "n"),
138+
store.var(shape.getId().getName()),
139+
() -> doWithMembers(shape)
140+
);
136141
writer.addImportSubmodule("TypeRegistry", null, TypeScriptDependency.SMITHY_CORE, "/schema");
137142
writer.write(
138143
"""

0 commit comments

Comments
 (0)