You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ASDF Standard doesn't provide explicit guidance on how the "default" annotation in the schemas is to be used. The Python library currently adds default values to the tree where missing on read, and removes values that match the default on write. This feature seems intended to reduce file size when many objects with default values are present. There are some downsides: the files when viewed independent of the schemas seem to be missing some of their data (including required fields), and it's not always possible to identify a single default value for objects that are validated against multiple schemas using combiners.
Regardless of which behavior we settle on, we should consider adding language to the ASDF Standard that defines how default values are to be treated.
We talked about the option of removing defaults from the ASDF standard. Can we give that serious consideration? This is linked a bit to the previous item regarding null values.
The text was updated successfully, but these errors were encountered:
The ASDF Standard doesn't provide explicit guidance on how the "default" annotation in the schemas is to be used. The Python library currently adds default values to the tree where missing on read, and removes values that match the default on write. This feature seems intended to reduce file size when many objects with default values are present. There are some downsides: the files when viewed independent of the schemas seem to be missing some of their data (including required fields), and it's not always possible to identify a single default value for objects that are validated against multiple schemas using combiners.
Regardless of which behavior we settle on, we should consider adding language to the ASDF Standard that defines how default values are to be treated.
We talked about the option of removing defaults from the ASDF standard. Can we give that serious consideration? This is linked a bit to the previous item regarding null values.
The text was updated successfully, but these errors were encountered: