asdf-format / asdf

ASDF (Advanced Scientific Data Format) is a next generation interchange format for scientific data
http://asdf.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
523 stars 57 forks source link

Add schema manifest providing package version to asdf metadata and check schema packages on read #1741

Open braingram opened 8 months ago

braingram commented 8 months ago

Description of the problem

Currently many asdf extensions (gwcs, asdf-astropy, roman_datamodels) rely on manifests and schemas provided by a different package (asdf-wcs-schemas, asdf-transform-schemas, rad, etc).

However, the versions of these schema packages are not included in the metadata written to an asdf file that was validated against the schemas and use tags from the manifests.

Consider options for adding information about these schema packages to the asdf metadata including:

This new schema-providing-package metadata can be checked on read (similar to how extensions are checked) to provide (hopefully) useful messages to users that open files that expect resources that are not installed.

System information

asdf version: python version: operating system: