vsoch / oci-python

Python implementation of Open Containers Initiative (OCI) specifications
https://vsoch.github.io/oci-python/
Mozilla Public License 2.0
23 stars 12 forks source link

Adding support to update an existing value #13

Closed vsoch closed 2 years ago

vsoch commented 3 years ago

Currently, if we take a structure and run "add" to update an attribute, it completely replaces any content there (e.g., a dict or list). This is because the original development here was intended to load already existing specs, and basically valid. But given a different use case of changing/updating specs, with add we would actually want it to update - if the user wants to replace they can use set.

Signed-off-by: vsoch vsoch@users.noreply.github.com