lib/cocina/generator/schema_value.rb in cocina-models-0.79.0 vs lib/cocina/generator/schema_value.rb in cocina-models-0.80.0
- old
+ new
@@ -17,13 +17,9 @@
def type
"Types::#{dry_datatype(schema_doc)}#{optional}#{default}#{enum}"
end
- def preamble
- "#{description}#{example}#{relaxed_comment}"
- end
-
def enum
return '' if !schema_doc.enum || relaxed
items = use_types? ? "*#{parent.name}::TYPES" : schema_doc.enum.map { |item| quote(item) }.join(', ')