lib/cocina/generator/schema_base.rb in cocina-models-0.39.0 vs lib/cocina/generator/schema_base.rb in cocina-models-0.40.0

- old
+ new

@@ -52,10 +52,14 @@ when 'string' string_dry_datatype(doc) when 'boolean' 'Strict::Bool' else - raise "#{schema_doc.type} not supported" + if doc.one_of&.map(&:type).all? { |o| %w[integer string].include?(o) } + 'Nominal::Any' + else + raise "#{schema_doc.type} not supported" + end end end def string_dry_datatype(doc) case doc.format