Skip to content

Comments

feat: add input validation for EPUB files#41

Merged
webmaven merged 1 commit intomainfrom
add-epub-validation-537077093972326051
Jan 16, 2026
Merged

feat: add input validation for EPUB files#41
webmaven merged 1 commit intomainfrom
add-epub-validation-537077093972326051

Conversation

@webmaven
Copy link
Owner

Implemented validation in Book.init to:

  • Verify the file is a valid ZIP archive.
  • Check for the existence and content of the 'mimetype' file.
  • Verify the presence of 'META-INF/container.xml'.

Added unit tests to cover missing and invalid 'mimetype' file scenarios. Updated CHANGELOG.md.

Addresses #18.

Implemented validation in Book.__init__ to:
- Verify the file is a valid ZIP archive.
- Check for the existence and content of the 'mimetype' file.
- Verify the presence of 'META-INF/container.xml'.

Added unit tests to cover missing and invalid 'mimetype' file scenarios.
Updated CHANGELOG.md.

Addresses #18.
@webmaven webmaven merged commit 2bf79e3 into main Jan 16, 2026
1 check passed
@webmaven webmaven deleted the add-epub-validation-537077093972326051 branch January 16, 2026 23:17
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.

1 participant