spec/fortnox/api/mappers/contexts/json_conversion.rb in fortnox-api-0.6.3 vs spec/fortnox/api/mappers/contexts/json_conversion.rb in fortnox-api-0.7.0
- old
+ new
@@ -38,10 +38,10 @@
class Product < Fortnox::API::Model::Base
attribute :url, 'strict.string'
attribute :name, 'strict.string'
attribute :vat, 'strict.float'
- attribute :categories, Dry::Types['coercible.array'].member(Test::Category)
+ attribute :categories, Dry::Types['coercible.array'].of(Test::Category)
attribute :designer, Test::ProductDesigner
end
end
def register_mapper(mapper_sym, mapper)