lib/cocina/generator/schema_ref.rb in cocina-models-0.75.0 vs lib/cocina/generator/schema_ref.rb in cocina-models-0.76.0

- old
+ new

@@ -6,10 +6,10 @@ class SchemaRef < SchemaBase def generate if required && !relaxed "attribute(:#{name.camelize(:lower)}, #{schema_doc.name}.default { #{schema_doc.name}.new })" else - "attribute :#{name.camelize(:lower)}, #{schema_doc.name}.optional.meta(omittable: true)" + "attribute? :#{name.camelize(:lower)}, #{schema_doc.name}.optional" end end end end end