Skip to content

Commit 66b2cde

Browse files
committed
Update projections
1 parent 88ff845 commit 66b2cde

4 files changed

Lines changed: 6 additions & 2 deletions

File tree

projections/shapes/lib/shapes/client.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class Client < Smithy::Client::Base
2525
include Smithy::Client::Stubs
2626

2727
self.service = Schema::SERVICE
28+
self.type_registry = Schema::TYPE_REGISTRY
2829

2930
add_plugin(ShapeService::Plugins::Auth)
3031
add_plugin(ShapeService::Plugins::Endpoint)

projections/shapes/lib/shapes/schema.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ module Schema
7474
operation.traits = {"smithy.ruby.tests#shape"=>{}}
7575
end)
7676
end
77+
7778
TYPE_REGISTRY = Smithy::Schema::TypeRegistry.new
78-
TYPE_REGISTRY.register(BigDecimal, BigInteger, Blob, Boolean, Byte, Document, Double, Enum, Float, IntEnum, Integer, List, Long, Map, OperationInputOutput, Short, String, Structure, Timestamp, Union, )
79+
TYPE_REGISTRY.register(OperationInputOutput, Structure, Union)
7980
end
8081
end

projections/weather/lib/weather/client.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class Client < Smithy::Client::Base
2525
include Smithy::Client::Stubs
2626

2727
self.service = Schema::SERVICE
28+
self.type_registry = Schema::TYPE_REGISTRY
2829

2930
add_plugin(Weather::Plugins::Auth)
3031
add_plugin(Weather::Plugins::Endpoint)

projections/weather/lib/weather/schema.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ module Schema
8383
operation[:paginator] = Paginators::ListCities.new
8484
end)
8585
end
86+
8687
TYPE_REGISTRY = Smithy::Schema::TypeRegistry.new
87-
TYPE_REGISTRY.register(CityCoordinates, CityId, CitySummaries, CitySummary, GetCityInput, GetCityOutput, GetCurrentTimeOutput, GetForecastInput, GetForecastOutput, ListCitiesInput, ListCitiesOutput, NoSuchResource)
88+
TYPE_REGISTRY.register(CityCoordinates, CitySummary, GetCityInput, GetCityOutput, GetCurrentTimeOutput, GetForecastInput, GetForecastOutput, ListCitiesInput, ListCitiesOutput, NoSuchResource)
8889
end
8990
end

0 commit comments

Comments
 (0)