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 "example" of a "bug" above in time-1.2.0 should be permissible this simply due to the bug fixed by #349. The larger issue is the original generated example.
Clearly, the example asdf data should fail the ndarray-1.0.0 schema; however, it does not. This is the true bug.
The ndarray schema accepts any object that does not have a source key (and some that do). For example:
Does not produce a validation error and instead produces an exception during conversion to an array:
This schema is referenced in the time schema as part of an anyOf composition:
https://github.com/asdf-format/asdf-standard/blob/master/resources/schemas/stsci.edu/asdf/time/time-1.1.0.yaml#L127
which means that the subsequent object schema defined in time is not used and invalid yaml is produced for time objects that violate the time schema. For example, serializing
produces
which contains a base_format that is not listed in the time schema (this example was taken from the time tests in asdf-astropy some of which are passing because of this bug).
The text was updated successfully, but these errors were encountered: