Skip to content

Validation of file entries#74

Merged
dockmd merged 15 commits intointegrationfrom
feat/validating-files
Nov 19, 2024
Merged

Validation of file entries#74
dockmd merged 15 commits intointegrationfrom
feat/validating-files

Conversation

@dockmd
Copy link
Copy Markdown
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
Copy Markdown
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
@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