asdf-format/asdf

Find way to deprecate ndarray validators being applied to all tags

Opened this issue · 0 comments

Description of the problem

As noted in the code:

class NdimValidator(Validator):
schema_property = "ndim"
# The validators in this module should really only be applied
# to ndarray-* tags, but that will have to be a 3.0 change.
tags = ["**"]

In asdf 3.x we can introduce some sort of deprecation for this behavior (perhaps warning when the validation fails on a non-ndarray tag) so that the validation can be restricted to ndarray tags in asdf 4.0 (this issue is milestoned for 4.0 as there is not yet a target 3.x version for this deprecation).