sul-dlss / cocina-models

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

Adds support for lite (relaxed, unvalidated) models. #615

Closed justinlittman closed 1 year ago

justinlittman commented 1 year ago

NOTE: Changes to openapi.yml require updating openapi.yml for sdr-api and dor-services-app and generating models - see README.

Why was this change made? 🤔

Allow for only partially populated cocina models.

How was this change tested? 🤨

âš¡ âš  If this change has cross service impact, run integration tests and/or test in [stage|qa] environment, in addition to specs. âš¡

justinlittman commented 1 year ago

This doesn't require an openapi change, as it does not change anything in the cocina data model.

In a lite model, the base attributes will be null when they are omitted. However, it doesn't change the general approach to [].