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

Validation of file entries #74

Merged
merged 15 commits into from
Nov 19, 2024
Merged

Validation of file entries #74

merged 15 commits into from
Nov 19, 2024

Conversation

dockmd
Copy link
Collaborator

@dockmd dockmd commented Oct 1, 2024

Added validation of file entries attributes:

As before, the correct files from mets.xml are included in the end result in package/mets/file_entries. However, files with detected errors are placed in package/mets/invalid_file_entries together with the error ids. For now, this is just a requirement ids, but perhaps in future this could more descriptive.

- restored `Optional` import; and
- made `FileEntry.path` files `Optional` as per original PR.
carlwilson added a commit to DILCISBoard/eark-json-schema that referenced this pull request Oct 2, 2024
- reflects changes to `eark-validator` in E-ARK-Software/eark-validator#74.
Copy link
Member

@carlwilson carlwilson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While I approve of these changes I want to see what effects they have on the JSON schema compatibility with commons-ip. It's the new InvalidFileEntry type I'm wondering about, these are reported differently in commons-ip. It might not matter but will test before approving.

There is a PR for the generated schema here: DILCISBoard/eark-json-schema#3

@dockmd dockmd merged commit 4958ea9 into integration Nov 19, 2024
4 checks passed
@dockmd dockmd deleted the feat/validating-files branch November 19, 2024 20:27
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 this pull request may close these issues.

2 participants