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

Open
wants to merge 15 commits into
base: integration
Choose a base branch
from
Open

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

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