Skip to content

Commit

Permalink
Merge pull request #111 from OCFL/spec-examples-1-1
Browse files Browse the repository at this point in the history
Add missing 1.1 spec examples
  • Loading branch information
julianmorley authored Dec 5, 2024
2 parents 3542bce + a9e30a1 commit 81fba8d
Show file tree
Hide file tree
Showing 13 changed files with 123 additions and 0 deletions.
1 change: 1 addition & 0 deletions 1.1/good-objects/spec-ex-minimal/0=ocfl_object_1.1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ocfl_object_1.1
26 changes: 26 additions & 0 deletions 1.1/good-objects/spec-ex-minimal/inventory.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"digestAlgorithm": "sha512",
"head": "v1",
"id": "http://example.org/minimal",
"manifest": {
"7545b8720a601235067473f2c87f43461f5c147fb622d51bfcdcda05e0773c96e9f922f4d88d371bb7f87793b655b9e1c3b8bbca35f2950c5c87eda955179f67": [
"v1/content/file.txt"
]
},
"type": "https://ocfl.io/1.1/spec/#inventory",
"versions": {
"v1": {
"created": "2018-10-02T12:00:00Z",
"message": "One file",
"state": {
"7545b8720a601235067473f2c87f43461f5c147fb622d51bfcdcda05e0773c96e9f922f4d88d371bb7f87793b655b9e1c3b8bbca35f2950c5c87eda955179f67": [
"file.txt"
]
},
"user": {
"address": "mailto:[email protected]",
"name": "Alice"
}
}
}
}
1 change: 1 addition & 0 deletions 1.1/good-objects/spec-ex-minimal/inventory.json.sha512
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6bb774a907da74fafde9fa05cc75352e3beffb061ae9eb15f7cf440c49de87e035d132fc29ce0fddc18be102882120adabab66417b0375fb757831a5060568d7 inventory.json
1 change: 1 addition & 0 deletions 1.1/good-objects/spec-ex-minimal/v1/content/file.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am a file!
26 changes: 26 additions & 0 deletions 1.1/good-objects/spec-ex-minimal/v1/inventory.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"digestAlgorithm": "sha512",
"head": "v1",
"id": "http://example.org/minimal",
"manifest": {
"7545b8720a601235067473f2c87f43461f5c147fb622d51bfcdcda05e0773c96e9f922f4d88d371bb7f87793b655b9e1c3b8bbca35f2950c5c87eda955179f67": [
"v1/content/file.txt"
]
},
"type": "https://ocfl.io/1.1/spec/#inventory",
"versions": {
"v1": {
"created": "2018-10-02T12:00:00Z",
"message": "One file",
"state": {
"7545b8720a601235067473f2c87f43461f5c147fb622d51bfcdcda05e0773c96e9f922f4d88d371bb7f87793b655b9e1c3b8bbca35f2950c5c87eda955179f67": [
"file.txt"
]
},
"user": {
"address": "mailto:[email protected]",
"name": "Alice"
}
}
}
}
1 change: 1 addition & 0 deletions 1.1/good-objects/spec-ex-minimal/v1/inventory.json.sha512
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6bb774a907da74fafde9fa05cc75352e3beffb061ae9eb15f7cf440c49de87e035d132fc29ce0fddc18be102882120adabab66417b0375fb757831a5060568d7 inventory.json
1 change: 1 addition & 0 deletions 1.1/warn-objects/W007_spec-ex-diff-paths/0=ocfl_object_1.1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ocfl_object_1.1
31 changes: 31 additions & 0 deletions 1.1/warn-objects/W007_spec-ex-diff-paths/inventory.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"digestAlgorithm": "sha512",
"head": "v1",
"id": "http://example.org/diff-paths",
"manifest": {
"7545b8720a601235067473f2c87f43461f5c147fb622d51bfcdcda05e0773c96e9f922f4d88d371bb7f87793b655b9e1c3b8bbca35f2950c5c87eda955179f67": [
"v1/content/3bacb119a98a15c5"
],
"af318dca6b3f5ad0c1029814417362bde735c84b23edc7367bbf3c3b964945e9c87918da78442efca1c1b6d88f3a65197f09cf02479b3580e89c3879e77ca3cd": [
"v1/content/9f2bab8ef869947d"
]
},
"type": "https://ocfl.io/1.1/spec/#inventory",
"versions": {
"v1": {
"created": "2019-03-14T20:31:00Z",
"state": {
"7545b8720a601235067473f2c87f43461f5c147fb622d51bfcdcda05e0773c96e9f922f4d88d371bb7f87793b655b9e1c3b8bbca35f2950c5c87eda955179f67": [
"a file.wxy"
],
"af318dca6b3f5ad0c1029814417362bde735c84b23edc7367bbf3c3b964945e9c87918da78442efca1c1b6d88f3a65197f09cf02479b3580e89c3879e77ca3cd": [
"another file.xyz"
]
},
"user": {
"address": "mailto:[email protected]",
"name": "Some Admin"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cb2a2ad687bb865cd14c2d57a8c139498d3754664af9bd5079e56a16a6d3f4af828809244dc2a9a35d5928d867c01d76883db4efa17dc719b505fb9155bacdbf inventory.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am a file!
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
I am another file!
31 changes: 31 additions & 0 deletions 1.1/warn-objects/W007_spec-ex-diff-paths/v1/inventory.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"digestAlgorithm": "sha512",
"head": "v1",
"id": "http://example.org/diff-paths",
"manifest": {
"7545b8720a601235067473f2c87f43461f5c147fb622d51bfcdcda05e0773c96e9f922f4d88d371bb7f87793b655b9e1c3b8bbca35f2950c5c87eda955179f67": [
"v1/content/3bacb119a98a15c5"
],
"af318dca6b3f5ad0c1029814417362bde735c84b23edc7367bbf3c3b964945e9c87918da78442efca1c1b6d88f3a65197f09cf02479b3580e89c3879e77ca3cd": [
"v1/content/9f2bab8ef869947d"
]
},
"type": "https://ocfl.io/1.1/spec/#inventory",
"versions": {
"v1": {
"created": "2019-03-14T20:31:00Z",
"state": {
"7545b8720a601235067473f2c87f43461f5c147fb622d51bfcdcda05e0773c96e9f922f4d88d371bb7f87793b655b9e1c3b8bbca35f2950c5c87eda955179f67": [
"a file.wxy"
],
"af318dca6b3f5ad0c1029814417362bde735c84b23edc7367bbf3c3b964945e9c87918da78442efca1c1b6d88f3a65197f09cf02479b3580e89c3879e77ca3cd": [
"another file.xyz"
]
},
"user": {
"address": "mailto:[email protected]",
"name": "Some Admin"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cb2a2ad687bb865cd14c2d57a8c139498d3754664af9bd5079e56a16a6d3f4af828809244dc2a9a35d5928d867c01d76883db4efa17dc719b505fb9155bacdbf inventory.json

0 comments on commit 81fba8d

Please sign in to comment.