3 | | By default it should preserve all data that it can extract, and allow the user to override (in the same way as done now) specific fields. |
| 3 | 1. in case metadata: global, in the ingredient is an object (even empty), the current behavior is kept (the metadata indicated in the ingredient is kept) |
| 4 | 1. in case metadata: global has value "auto", all fields from the file are kept, specified as: |
| 5 | {{{ |
| 6 | "metadata": { |
| 7 | "type": "xml", |
| 8 | "global": "auto" |
| 9 | } |
| 10 | |
| 11 | or |
| 12 | |
| 13 | "metadata": { |
| 14 | "type": "json", |
| 15 | "global": "auto" |
| 16 | } |
| 17 | }}} |
| 18 | 1. in case metadata: global does not exist, the "auto" behavior is assumed. |