File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 46
46
import software .amazon .smithy .model .shapes .ServiceShape ;
47
47
import software .amazon .smithy .model .shapes .ShapeId ;
48
48
import software .amazon .smithy .model .traits .PaginatedTrait ;
49
+ import software .amazon .smithy .model .transform .ModelTransformer ;
49
50
import software .amazon .smithy .typescript .codegen .integration .ProtocolGenerator ;
50
51
import software .amazon .smithy .typescript .codegen .integration .RuntimeClientPlugin ;
51
52
import software .amazon .smithy .typescript .codegen .integration .TypeScriptIntegration ;
@@ -374,7 +375,12 @@ public void customizeBeforeIntegrations(CustomizeDirective<TypeScriptCodegenCont
374
375
});
375
376
376
377
// TODO: do all of these parts below are before/after?
377
- SymbolVisitor .writeModelIndex (directive .model (), directive .symbolProvider (), directive .fileManifest ());
378
+
379
+ // TODO: Do nonTraits need to be used in any other part of the logic?
380
+ // Like CodegenVisitor did it before visiting structures etc.
381
+ Model nonTraits = ModelTransformer .create ().getModelWithoutTraitShapes (directive .model ());
382
+ SymbolVisitor .writeModelIndex (nonTraits , directive .symbolProvider (), directive .fileManifest ());
383
+ // SymbolVisitor.writeModelIndex(directive.model(), directive.symbolProvider(), directive.fileManifest());
378
384
379
385
// Generate the client Node and Browser configuration files. These
380
386
// files are switched between in package.json based on the targeted
You can’t perform that action at this time.
0 commit comments