lib/cocina/models/stanford_access.rb in cocina-models-0.75.0 vs lib/cocina/models/stanford_access.rb in cocina-models-0.76.0

- old
+ new

@@ -6,10 +6,10 @@ # Access level. attribute :view, Types::Strict::String.enum('stanford') # Download access level. attribute :download, Types::Strict::String.enum('stanford') # Not used for this access type, must be null. - attribute :location, Types::Strict::String.optional.enum('').meta(omittable: true) - attribute :controlledDigitalLending, Types::Strict::Bool.enum(false).meta(omittable: true) + attribute? :location, Types::Strict::String.optional.enum('') + attribute? :controlledDigitalLending, Types::Strict::Bool.default(false).enum(false) end end end