microbiomedata / nmdc-runtime

Runtime system for NMDC data management and orchestration
https://microbiomedata.github.io/nmdc-runtime/
Other
4 stars 3 forks source link

changesheet validator throws error when using `remove item` for a single-value field #498

Closed PeopleMakeCulture closed 3 months ago

PeopleMakeCulture commented 3 months ago

@brynnz22 submitted a bug with the changesheet:validates endpoint, where the validator throws an error when using remove item with a single-value field

dwinston commented 3 months ago

The correct action to specify for this intent is remove (or delete), as per this code block:

https://github.com/microbiomedata/nmdc-runtime/blob/v1.4.1/nmdc_runtime/api/core/metadata.py#L505-L530

However, this action is missing from the how-to guide:

https://github.com/microbiomedata/nmdc-runtime/blob/v1.4.1/docs/howto-guides/author-changesheets.md