Skip to content
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

Fix spec links in error reporting to use the appropriate spec version #125

Closed
zimeon opened this issue Oct 21, 2024 · 1 comment · Fixed by #126
Closed

Fix spec links in error reporting to use the appropriate spec version #125

zimeon opened this issue Oct 21, 2024 · 1 comment · Fixed by #126

Comments

@zimeon
Copy link
Owner

zimeon commented Oct 21, 2024

Currently links are to v1.0 regardless of the object or storage root version, e.g.

ocfl-py> ./ocfl-validate.py fixtures/1.0/bad-objects/E025_wrong_digest_algorithm
[E001a] OCFL Object root contains unexpected file: inventory.json.md5 (see https://ocfl.io/1.0/spec/#E001)
...
OCFL v1.0 Object at fixtures/1.0/bad-objects/E025_wrong_digest_algorithm is INVALID

ocfl-py> ./ocfl-validate.py fixtures/1.1/bad-objects/E025_wrong_digest_algorithm
[E001a] OCFL Object root contains unexpected file: inventory.json.md5 (see https://ocfl.io/1.0/spec/#E001)
....
OCFL v1.1 Object at fixtures/1.1/bad-objects/E025_wrong_digest_algorithm is INVALID
@zimeon
Copy link
Owner Author

zimeon commented Oct 24, 2024

Now:

> ./ocfl-validate.py fixtures/1.0/warn-objects/W004_uses_sha256
[W004] OCFL Object root inventory SHOULD use sha512 but uses sha256 as the DigestAlgorithm (see https://ocfl.io/1.0/spec/#W004)
OCFL v1.0 Object at fixtures/1.0/warn-objects/W004_uses_sha256 is VALID
> 
> ./ocfl-validate.py fixtures/1.1/warn-objects/W004_uses_sha256
[W004] OCFL Object root inventory SHOULD use sha512 but uses sha256 as the DigestAlgorithm (see https://ocfl.io/1.1/spec/#W004)
OCFL v1.1 Object at fixtures/1.1/warn-objects/W004_uses_sha256 is VALID

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant