Skip to content

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.

2 participants