Skip to content

chore(document): register the Box Note mime type#668

Open
pablopupo wants to merge 1 commit into
docling-project:mainfrom
pablopupo:feat/boxnote-mimetype
Open

chore(document): register the Box Note mime type#668
pablopupo wants to merge 1 commit into
docling-project:mainfrom
pablopupo:feat/boxnote-mimetype

Conversation

@pablopupo

Copy link
Copy Markdown

DocumentOrigin rejects application/vnd.box.boxnote because it isn't in Python's mimetypes registry, so the Box Note backend in docling (docling-project/docling#3722) falls back to application/json. This registers it in _extra_mimetypes, alongside the other vendor types, so the backend can use the correct mime.

Per @ceberam's review on that PR.

@github-actions

Copy link
Copy Markdown
Contributor

DCO Check Passed

Thanks @pablopupo, all your commits are properly signed off. 🎉

@mergify

mergify Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Merge Protections

🟢 Merge protection satisfied — ready to merge.

Show 1 satisfied protection

🟢 Enforce conventional commit

Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/

  • title ~= ^(fix|feat|docs|style|refactor|perf|test|build|ci|chore|revert)(?:\(.+\))?(!)?:

@codecov

codecov Bot commented Jun 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@ceberam ceberam left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @pablopupo for submitting this PR so quickly.
Since you're touching the _extra_mimetypes list and to keep things tidy, would you mind sorting it in alphabetical order?
For this small change, I would rather give another commit type like chore.

@pablopupo

Copy link
Copy Markdown
Author

Done!

@pablopupo pablopupo force-pushed the feat/boxnote-mimetype branch from a8d2797 to c0f14e3 Compare June 30, 2026 15:13
DocumentOrigin rejects application/vnd.box.boxnote because it isn't in
Python's mimetypes registry, so the Box Note backend in docling
(docling-project/docling#3722) falls back to application/json. This
registers it in _extra_mimetypes so the backend can use the correct mime.

The list is also sorted alphabetically now.

Signed-off-by: pablopupo <145598901+pablopupo@users.noreply.github.com>
@pablopupo pablopupo force-pushed the feat/boxnote-mimetype branch from c0f14e3 to a980141 Compare June 30, 2026 15:17
@pablopupo pablopupo changed the title feat(document): register the Box Note mime type chore(document): register the Box Note mime type Jun 30, 2026
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