Skip to content

Commit f7be12f

Browse files
committed
rename schema exports with schema suffix
1 parent 06a92e2 commit f7be12f

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,6 @@
8181
"packages/**/src/**/*.ts": [
8282
"prettier --write"
8383
],
84-
"**/*.{ts,js,md,json,java}": "prettier --write"
84+
"**/*.java": "prettier --write"
8585
}
8686
}

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,7 @@ private void writeStructureSchema(StructureShape shape) {
124124
writer.addTypeImport("StaticErrorSchema", null, TypeScriptDependency.SMITHY_TYPES);
125125
writer.addRelativeImport(exceptionCtorSymbolName, null, Paths.get("..", "models", "errors"));
126126
writer.openBlock("""
127-
export var $L: StaticErrorSchema = [-3, $L, $L,""", "];",
128-
getShapeVariableName(shape),
129-
store.var(shape.getId().getNamespace(), "n"), store.var(shape.getId().getName()), () -> doWithMembers(shape));
127+
export var $L: StaticErrorSchema = [-3, $L, $L,""", "];", getShapeVariableName(shape), store.var(shape.getId().getNamespace(), "n"), store.var(shape.getId().getName()), () -> doWithMembers(shape));
130128
writer.addImportSubmodule("TypeRegistry", null, TypeScriptDependency.SMITHY_CORE, "/schema");
131129
writer.write(
132130
"""

0 commit comments

Comments
 (0)