sul-dlss / dor-services-app

A Rails application exposing Digital Object Registry functions as a RESTful HTTP API
https://sul-dlss.github.io/dor-services-app/
Other
3 stars 2 forks source link

Validate that repository object version for user version has cocina #5104

Closed justinlittman closed 3 weeks ago

justinlittman commented 3 weeks ago

For this ticket, add an additional validator to UserVersion to ensure that its RepositoryObjectVersion has cocina. (Recall that legacy RepositoryObjectVersions don't have cocina.)

The easiest way to check if a RepositoryObjectVersion has cocina is to check if cocina_version is present (though it might be nice to add a helper method for this).