File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed
internal/repotools/cmd/syncAPIModels Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,6 @@ func copyModelFile(model SourceModel) error {
6767// SourceModel provides the type for a model that should be copied.
6868type SourceModel struct {
6969SDKID string
70- Version string
7170SrcFilepath string
7271DstFilename string
7372}
@@ -110,10 +109,6 @@ func findSmithyModels(modelPath string) (map[string]SourceModel, error) {
110109if shape .Type != "service" {
111110continue
112111}
113- if len (shape .Version ) == 0 {
114- return fmt .Errorf ("smithy service doesn't have version %s %s" ,
115- name , path )
116- }
117112if shape .Traits .Service == nil {
118113// Ignore services that don't have an SDK id.
119114continue
@@ -133,7 +128,6 @@ func findSmithyModels(modelPath string) (map[string]SourceModel, error) {
133128// TODO what about two services in same model file?
134129models [sdkID ] = SourceModel {
135130SDKID : sdkID ,
136- Version : shape .Version ,
137131SrcFilepath : path ,
138132DstFilename : sdkID + ".json" ,
139133}
You can’t perform that action at this time.
0 commit comments