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

- old
+ new

@@ -21,17 +21,9 @@ def name key || schema_doc.name end - # Allows non-required values to not be provided. This allows smaller - # requests as not every field needs to be present. - def omittable - return '' if required && !relaxed - - '.meta(omittable: true)' - end - # Allows nillable values to be set to nil. This is useful when doing # an update and you want to clear out a value. def optional nullable || relaxed ? '.optional' : '' end