sul-dlss / cocina-models

Cocina repository data model (implemented in Ruby)
https://sul-dlss.github.io/cocina-models/
3 stars 0 forks source link

Cannot instantiate Folio catalog links from hash #574

Closed justinlittman closed 1 year ago

justinlittman commented 1 year ago
Dry::Struct::Error:
       [Cocina::Models::SymphonyCatalogLink.new] "folio" (String) has invalid type for :catalog violates constraints (included_in?(["symphony", "previous symphony"], "folio") failed)
justinlittman commented 1 year ago

See test in https://github.com/sul-dlss/cocina-models/pull/575

cc @mjgiarlo

ndushay commented 1 year ago

I think the problem is the missing alpha prefix for the folio identifier; I am closing this ticket per slack conversation with Justin. Please reopen if I'm wrong.