-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add missing 1.0 spec examples #110
Merged
Merged
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ocfl_object_1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"digestAlgorithm": "sha512", | ||
"head": "v1", | ||
"id": "http://example.org/diff-paths", | ||
"manifest": { | ||
"7545b8720a601235067473f2c87f43461f5c147fb622d51bfcdcda05e0773c96e9f922f4d88d371bb7f87793b655b9e1c3b8bbca35f2950c5c87eda955179f67": [ | ||
"v1/content/3bacb119a98a15c5" | ||
], | ||
"af318dca6b3f5ad0c1029814417362bde735c84b23edc7367bbf3c3b964945e9c87918da78442efca1c1b6d88f3a65197f09cf02479b3580e89c3879e77ca3cd": [ | ||
"v1/content/9f2bab8ef869947d" | ||
] | ||
}, | ||
"type": "https://ocfl.io/1.0/spec/#inventory", | ||
"versions": { | ||
"v1": { | ||
"created": "2019-03-14T20:31:00Z", | ||
"state": { | ||
"7545b8720a601235067473f2c87f43461f5c147fb622d51bfcdcda05e0773c96e9f922f4d88d371bb7f87793b655b9e1c3b8bbca35f2950c5c87eda955179f67": [ | ||
"a file.wxy" | ||
], | ||
"af318dca6b3f5ad0c1029814417362bde735c84b23edc7367bbf3c3b964945e9c87918da78442efca1c1b6d88f3a65197f09cf02479b3580e89c3879e77ca3cd": [ | ||
"another file.xyz" | ||
] | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
a1792927c94f8cf96e651f4553941627053cabdfeafa9aebb20af661677806d9e82bc1b97c071eee8ad12ac6deca94f3783d49e3c8748975926f6fd6f87f7fe1 inventory.json |
1 change: 1 addition & 0 deletions
1
1.0/good-objects/spec-ex-diff-paths/v1/content/3bacb119a98a15c5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
I am a file! |
1 change: 1 addition & 0 deletions
1
1.0/good-objects/spec-ex-diff-paths/v1/content/9f2bab8ef869947d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
I am another file! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"digestAlgorithm": "sha512", | ||
"head": "v1", | ||
"id": "http://example.org/diff-paths", | ||
"manifest": { | ||
"7545b8720a601235067473f2c87f43461f5c147fb622d51bfcdcda05e0773c96e9f922f4d88d371bb7f87793b655b9e1c3b8bbca35f2950c5c87eda955179f67": [ | ||
"v1/content/3bacb119a98a15c5" | ||
], | ||
"af318dca6b3f5ad0c1029814417362bde735c84b23edc7367bbf3c3b964945e9c87918da78442efca1c1b6d88f3a65197f09cf02479b3580e89c3879e77ca3cd": [ | ||
"v1/content/9f2bab8ef869947d" | ||
] | ||
}, | ||
"type": "https://ocfl.io/1.0/spec/#inventory", | ||
"versions": { | ||
"v1": { | ||
"created": "2019-03-14T20:31:00Z", | ||
"state": { | ||
"7545b8720a601235067473f2c87f43461f5c147fb622d51bfcdcda05e0773c96e9f922f4d88d371bb7f87793b655b9e1c3b8bbca35f2950c5c87eda955179f67": [ | ||
"a file.wxy" | ||
], | ||
"af318dca6b3f5ad0c1029814417362bde735c84b23edc7367bbf3c3b964945e9c87918da78442efca1c1b6d88f3a65197f09cf02479b3580e89c3879e77ca3cd": [ | ||
"another file.xyz" | ||
] | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
a1792927c94f8cf96e651f4553941627053cabdfeafa9aebb20af661677806d9e82bc1b97c071eee8ad12ac6deca94f3783d49e3c8748975926f6fd6f87f7fe1 inventory.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ocfl_object_1.0 |
zimeon marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.0/spec/#inventory", | ||
"versions": { | ||
"v1": { | ||
"created": "2018-10-02T12:00:00Z", | ||
"message": "One file", | ||
"state": { | ||
"7545b8720a601235067473f2c87f43461f5c147fb622d51bfcdcda05e0773c96e9f922f4d88d371bb7f87793b655b9e1c3b8bbca35f2950c5c87eda955179f67": [ | ||
"file.txt" | ||
] | ||
}, | ||
"user": { | ||
"address": "[email protected]", | ||
"name": "Alice" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
8c9d026e7fb032ed5d0f45ce31920681765cb4781758a15bb7575665e854ab8724bbcf2930b60caaed3aa9e52e330014ec3113092796f8f213de074d8dd1f3d7 inventory.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
I am a file! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.0/spec/#inventory", | ||
"versions": { | ||
"v1": { | ||
"created": "2018-10-02T12:00:00Z", | ||
"message": "One file", | ||
"state": { | ||
"7545b8720a601235067473f2c87f43461f5c147fb622d51bfcdcda05e0773c96e9f922f4d88d371bb7f87793b655b9e1c3b8bbca35f2950c5c87eda955179f67": [ | ||
"file.txt" | ||
] | ||
}, | ||
"user": { | ||
"address": "[email protected]", | ||
"name": "Alice" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
8c9d026e7fb032ed5d0f45ce31920681765cb4781758a15bb7575665e854ab8724bbcf2930b60caaed3aa9e52e330014ec3113092796f8f213de074d8dd1f3d7 inventory.json |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
validating this fixture results in a warning because
v1
is missing amessage
(edit: anduser
). Given that this is based on an example from the spec, I wonder if it's worth updating the example to include a message. Otherwise, should this fixture be movedwarn-objects
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, moved: