app/services/hyrax/simple_schema_loader.rb in hyrax-3.0.0.pre.rc2 vs app/services/hyrax/simple_schema_loader.rb in hyrax-3.0.0.pre.rc3
- old
+ new
@@ -32,11 +32,11 @@
end
##
# @param [Symbol] schema
#
- # @return [Hash<Symbol, Symbol>] a map from index keys to attribute names
+ # @return [{Symbol => Symbol}] a map from index keys to attribute names
def index_rules_for(schema:)
definitions(schema).each_with_object({}) do |definition, hash|
definition.index_keys.each do |key|
hash[key] = definition.name
end
@@ -106,9 +106,11 @@
#
# @param [String]
# @return [Dry::Types::Type]
def type_for(type)
case type
+ when 'id'
+ Valkyrie::Types::ID
when 'uri'
Valkyrie::Types::URI
when 'date_time'
Valkyrie::Types::DateTime
else