Extended user attributes given with -e should always be exported, even if they contain null values. This was the case for the last release.
The recent core refactoring changed the behavior and filters all null values. Therefore this change here that handles extended attributes in a special way and not includes them.
This only concerns the as_dict method and methods using that (such as as_flat_dict). Exporters not using those methods have not been changed and might need to be updated aswell if users report problems.
Example vspec:
Vehicle:
type: branch
description: Vehicle
foo: ~
bar: ~
Should result in the export (only when passing -e foo -e bar):
Vehicle:
bar: null
description: Vehicle
foo: null
type: branch
About
Extended user attributes given with
-e
should always be exported, even if they containnull
values. This was the case for the last release. The recent core refactoring changed the behavior and filters all null values. Therefore this change here that handles extended attributes in a special way and not includes them. This only concerns theas_dict
method and methods using that (such asas_flat_dict
). Exporters not using those methods have not been changed and might need to be updated aswell if users report problems.Example vspec:
Should result in the export (only when passing
-e foo -e bar
):