Skip to content

Registered extension name clarification #565

@pwinckles

Description

@pwinckles

The spec defines an registered extension name as follows:

The registered name of an extension is the name provided in the Extension Name property of the extension's definition.

It later says:

The specific structure and function of the extension, as well as a declaration of the registered extension name MUST be defined in one of the following locations:

  1. The OCFL Extensions repository
  2. The Storage Root, as a plain text document directly in the Storage Root

The later seems to indicate that all extension names, adopted or not, are "registered" so long as there is a plaintext document that describes them in the storage root.

If this is true, the following codes present an impossible problem to validators because there is no way to know what is or isn't an extension name:

  1. E071: ‘The value of the ocfl_layout.json extension key must be the registered extension name for the extension defining the arrangement under the storage root.’
  2. W013: ‘In an OCFL Object, extension sub-directories SHOULD be named according to a registered extension name.’

I had originally thought that "registered" extension names were only for extensions that were adopted into the extensions repository. In which case, validators would enforce those rules for the set of known extensions. And, I was going to file a ticket to say that I thought that E071 would be more congruous if it was a warning rather than an error.

So,

  1. Are all extension names "registered"? If so, what are validators supposed to do?
  2. If not, wouldn't it make more sense for E071 to be a warning?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions