26.07 Storage Modulev0.1.45 → v0.1.46
Changed in v0.1.46 (2026-04-18): storage module clearfy the case of no context and type
→+1 −1
| v0.1.45 | v0.1.46 | ||
|---|---|---|---|
| 30 | - `storageOverwrite` is OPTIONAL and its value MUST be of type `boolean`. If it is not provided, the default value `true` MUST be used. Its value MUST be ignored if `storage` is not specified. When it is `true`, any conflict between an `Artifact` in `Form` and an `Artifact` in `Storage` MUST be resolved in favor of the `Artifact` in `Storage`; when it is `false`, the `Artifact` in `Form` MUST be merged into the corresponding `Artifact` in `Storage` member by member at every level, where each member present in `Form` overwrites the corresponding member in `Storage`, and the merged `Artifact` MUST be used, providing further customization of the scene in addition to the `Storage` data. | 30 | - `storageOverwrite` is OPTIONAL and its value MUST be of type `boolean`. If it is not provided, the default value `true` MUST be used. Its value MUST be ignored if `storage` is not specified. When it is `true`, any conflict between an `Artifact` in `Form` and an `Artifact` in `Storage` MUST be resolved in favor of the `Artifact` in `Storage`; when it is `false`, the `Artifact` in `Form` MUST be merged into the corresponding `Artifact` in `Storage` member by member at every level, where each member present in `Form` overwrites the corresponding member in `Storage`, and the merged `Artifact` MUST be used, providing further customization of the scene in addition to the `Storage` data. |
| 31 | - `storageEnforce` is OPTIONAL and its value MUST be of type `boolean`. If it is not provided, the default value `true` MUST be used. Its value MUST be ignored if `storage` is not specified. When it is `true`, any `Artifact` in `Form` that is not present in `Storage` MUST be discarded. | 31 | - `storageEnforce` is OPTIONAL and its value MUST be of type `boolean`. If it is not provided, the default value `true` MUST be used. Its value MUST be ignored if `storage` is not specified. When it is `true`, any `Artifact` in `Form` that is not present in `Storage` MUST be discarded. |
| 32 | 32 | ||
| 33 | It is valid, though not recommended, to have an `Artifact` in `Form` containing only `metadata` with an `id`, and use `storageOverwrite` to resolve it to the corresponding `Artifact` in `Storage`. | 33 | When a `storage` value is provided, it is valid, though not recommended, to have an `Artifact` in `Form` containing only `metadata`with an `id`, and use `storageOverwrite` to resolve it to the corresponding `Artifact` in `Storage`. `Storage` MUST contain the full information of the artifacts. If `Storage` is not provided or the relevant `Artifact` is missing from `Storage`, an `Artifact` missing a `context` or `type` member MUST be discarded. |