lib/cocina/generator/schema_value.rb in cocina-models-0.86.0 vs lib/cocina/generator/schema_value.rb in cocina-models-0.87.0

- old
+ new

@@ -14,11 +14,11 @@ end private def type - "Types::#{dry_datatype(schema_doc)}#{optional}#{default}#{enum}" + "#{dry_datatype(schema_doc)}#{optional}#{default}#{enum}" end def enum return '' if !schema_doc.enum || relaxed @@ -31,10 +31,10 @@ parent.is_a?(Schema) && key == 'type' end def default # Provide version as default for cocinaVersion - return '.default(Cocina::Models::VERSION)' if name == 'cocinaVersion' + return '.default(VERSION)' if name == 'cocinaVersion' # If type is boolean and default is false, erroneously getting a nil. # Assuming that if required, then default is false. default = schema_doc.default default = false if default.nil? && schema_doc.type == 'boolean'