1.6.6 - 24-12-13
Bugfix
- #38, #39 -
- JSON Schema generation failed when the
dtype
was embedded from dtypes that lack a__name__
attribute.
An additional check was added for presence of__name__
when embedding. NDArray
types were incorrectly cached s.t. pipe-union dtypes were considered equivalent toUnion[]
dtypes. An additional tuple with the type of the args was added to the cache key to disambiguate them.
- JSON Schema generation failed when the
- #38, #40 -
- Tuple dtypes were naively checked by just testing for whether the given dtype was contained by the tuple,
ignoring special cases like string type checking. Tuple dtypes are now checked recursively with the same
logic as all other type checking. - Zarr treats
dtype=str
as numpy typeO
- added special case when validating from JSON to cast tonp.str_
- Tuple dtypes were naively checked by just testing for whether the given dtype was contained by the tuple,
Testing
- #39 - Test that all combinations of shapes, dtypes, and interfaces
can generate JSON schema. - #39 - Add python 3.13 to the testing matrix.
- #39 - Add an additional
marks
field to ValidationCase
for finer-grained control over running tests. - #40 - Explicitly test for
np.str_
annotation dtypes alone and
in tuples.