Packages
Read and write Advanced Scientific Data Format (ASDF) 1.5.0 files from Elixir.
Current section
Files
Jump to
Current section
Files
docs/spec-coverage.md
# Specification coverage
Authoritative text: ASDF standard 1.5.0, file layout and versioning chapters at https://www.asdf-format.org/projects/asdf-standard/en/latest/ . The YAML subset this library accepts is described in the [Guide](guide.md). Reference software: Python asdf 6.0.0 (behavior only; the written spec wins).
| ID | Spec item | Source | Test | Status |
| --- | --- | --- | --- | --- |
| FF-HEADER-1 | `#ASDF` token, whitespace, `x.y.z`, newline | file layout, Header | `ASDF.HeaderTest` golden fixture, property `1.0.z` | implemented |
| FF-HEADER-2 | File format other than `1.0.z` is rejected | versioning | `rejects a file format this library cannot lay out` | implemented |
| FF-HEADER-3 | Truncated header (no newline) is an error | file layout EBNF | `test/fixtures/truncated_header.asdf` | implemented |
| FF-COMMENT-1 | Comment lines begin with `#` and end before the tree | file layout, Comments | `accepts a CR LF header and leaves the tree unconsumed` | implemented |
| FF-STD-1 | `#ASDF_STANDARD` comment carries the spec version | versioning chapter example | golden fixture | implemented |
| FF-STD-2 | A second `#ASDF_STANDARD` comment | not specified; we reject | `rejects a second standard-version comment` | implemented (local rule) |
| YAML-1 | `%YAML 1.1` tree, one document | file layout, Tree | `ASDF.YAMLTest`, `ASDF.OpenTest` golden fixture | implemented |
| YAML-2 | Mapping keys restricted to bool, int, str | YAML subset | `rejects a float key` | implemented |
| YAML-3 | Unknown tags retained | Tags chapter | `keeps a block anchor and does not create atoms` | implemented |
| YAML-4 | Alias expansion must be bounded | implementation limit, not a spec sentence | `rejects alias bombs` | implemented |
| YAML-5 | Merge key `<<` | not in the retrieved subset chapter | `does not expand merge keys` | partial (not expanded) |
| BLOCK-1 | Block magic, `header_size`, flags, sizes, checksum | file layout, Blocks | `ASDF.BlockTest` success block, truncated block, checksum mismatch | implemented |
| BLOCK-2 | Block index checks | file layout, Block index | bad index is strict error and permissive warning | implemented |
| BLOCK-3 | zlib compression | file layout, Compression | inflate round trip; `data_size` over the cap | implemented |
| BLOCK-4 | bzp2 compression | file layout, Compression | `bzp2 is rejected` | unsupported (rejected) |
| BLOCK-5 | Streamed block is last and has no index | file layout, Blocks | `a streamed block runs to EOF` | partial (read only) |
| ND-1 | ndarray 1.0.0 and 1.1.0 | core schemas | int32, float32, float16, complex64, bool8, ascii, one structured field, empty, strides | implemented |
| ND-2 | External ndarray URI | core schemas | `does not open an external ndarray uri` | partial (preserved, not opened) |
| SCHEMA-1 | Core schema validation, local `$ref` only | schemas chapter | `ASDF.SchemaTest` software node, remote ref, unknown tag | implemented |
| SCHEMA-2 | ndarray schema self-reference | core ndarray schema | `resolve ndarray-1.0.0` returns `:cyclic_ref` | partial (not expanded) |
| SCHEMA-3 | Unit, time, FITS, WCS schemas | core-1.5.0 manifest also lists these | exclusions recorded; refs accept nothing | unsupported |
| REG-1 | Opt-in tag handler | implementation, not a file-chosen module | registered note tag; unknown tag stays tagged | implemented |
| WRITE-1 | Canonical writer | file layout | `ASDF.WriterTest` nested tree, endianness, zlib, empty array, external `..` | implemented |
| WRITE-2 | External path guard | file layout, external arrays | `..` and absolute paths are `:external_disabled` | implemented |
| REF-1 | Differential test against Python asdf 6.0.0 | reference implementation | `ASDF.PythonOracleTest` records `:not_installed` | not run |
| HARD-1 | Mutated input returns `:ok` or `%ASDF.Error{}` | implementation | `ASDF.FuzzTest`; `test/fixtures/regressions/yamerl-flow-scalar.asdf` | implemented |
| CLI-1 | `mix asdf.inspect` prints sizes and skips payloads | implementation | `ASDF.InspectTaskTest` | implemented |