Skip to content

Commit ad97da5

Browse files
authored
fix: allow overwriting a protocol's priority when selecting protocol (#1585)
1 parent c971743 commit ad97da5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/DirectedTypeScriptCodegen.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ private ProtocolGenerator resolveProtocolGenerator(
141141

142142
for (TypeScriptIntegration integration : integrations) {
143143
for (ProtocolGenerator generator : integration.getProtocolGenerators()) {
144+
// allow overrides of the same protocol ShapeId to change the order.
145+
generators.remove(generator.getProtocol());
144146
generators.put(generator.getProtocol(), generator);
145147
}
146148
}

0 commit comments

Comments
 (0)