Skip to content

Why do storage transformers need "type" separate from "configuration" #191

@rabernat

Description

@rabernat

This is what V3 currently says about how to specify storage transformers

zarr-specs/docs/core/v3.0.rst

Lines 1165 to 1174 in b509f14

Specifies a stack of `storage transformers`_. Each value in the list must
be an object containing the names ``extension`` and ``type``.
The ``extension`` is required and the value must be a URI that identifies
the extension and dereferences to a human-readable representation
of the specification. The ``type`` is required and the value is
defined by the extension. The
object may also contain a ``configuration`` object which consists of the
parameter names and values as defined by the corresponding storage transformer
specification. When the ``storage_transformers`` name is absent no storage
transformer is used, same for an empty list.

Why can't we just put type inside configuration? That just seems simpler. Plus, it may not make sense to define type for some storage transformers. That means type is a transformer-specific configuration parameter anyway.

cc @jstriebel

Metadata

Metadata

Assignees

No one assigned

    Labels

    core-protocol-v3.0Issue relates to the core protocol version 3.0 spec

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions