Skip to content

Commit

Permalink
Inventory version must match object version (#479)
Browse files Browse the repository at this point in the history
  • Loading branch information
zimeon authored Jun 16, 2020
1 parent edabd70 commit ea98b81
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions draft/spec/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -616,8 +616,10 @@ <h2>Basic Structure</h2>
<dt><code>type</code></dt>
<dd>
A type for the inventory JSON object that also serves to document the OCFL specification version
that the inventory complies with. This <span id="E038">MUST</span> be the URI of the inventory
section of the specification, <code>https://ocfl.io/1.0/spec/#inventory</code>.
that the inventory complies with. In the object root inventory this <span id="E038">MUST</span>
be the URI of the inventory section of the specification version matching the object conformance
declaration. For the current specification version the value is
<code>https://ocfl.io/1.0/spec/#inventory</code>.
</dd>
<dt><code>digestAlgorithm</code></dt>
<dd>
Expand Down
2 changes: 1 addition & 1 deletion validation/validation-codes.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
| E035 | 'The forward slash (/) path separator must be used in content paths in the manifest and fixity blocks within the inventory.' | https://ocfl.io/draft/spec/#E035
| E036 | 'An OCFL Object Inventory must include the following keys: [id, type, digestAlgorithm, head]' | https://ocfl.io/draft/spec/#E036
| E037 | '[id] must be unique in the local context, and should be a URI [RFC3986].' | https://ocfl.io/draft/spec/#E037
| E038 | '[type] must be the URI of the inventory section of the specification, https://ocfl.io/1.0/spec/#inventory.' | https://ocfl.io/draft/spec/#E038
| E038 | 'In the object root inventory [the type value] must be the URI of the inventory section of the specification version matching the object conformance declaration.' | https://ocfl.io/draft/spec/#E038
| E039 | '[digestAlgorithm] must be the algorithm used in the manifest and state blocks.' | https://ocfl.io/draft/spec/#E039
| E040 |[head] must be the version directory name with the highest version number.' | https://ocfl.io/draft/spec/#E040
| E041 | 'In addition to these keys, there must be two other blocks present, manifest and versions, which are discussed in the next two sections.' | https://ocfl.io/draft/spec/#E041
Expand Down

0 comments on commit ea98b81

Please sign in to comment.