-
Notifications
You must be signed in to change notification settings - Fork 13
Description
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:
- The OCFL Extensions repository
- 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:
E071: ‘The value of theocfl_layout.jsonextension key must be the registered extension name for the extension defining the arrangement under the storage root.’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,
- Are all extension names "registered"? If so, what are validators supposed to do?
- If not, wouldn't it make more sense for
E071to be a warning?