diff --git a/packages/document-issue-io/tests/testoutput/test_to_pdf/06667-MXF-XX-XX-SH-M-20003.md b/packages/document-issue-io/tests/testoutput/test_to_pdf/06667-MXF-XX-XX-SH-M-20003.md index 47ab75e..6a0cc2e 100644 --- a/packages/document-issue-io/tests/testoutput/test_to_pdf/06667-MXF-XX-XX-SH-M-20003.md +++ b/packages/document-issue-io/tests/testoutput/test_to_pdf/06667-MXF-XX-XX-SH-M-20003.md @@ -48,11 +48,11 @@ Fordham LLP\ ### Contributions -+----------------+-------------------+ -| **Initials** | **Role** | -+================+===================+ -| OH | RoleEnum.director | -+----------------+-------------------+ ++----------------+--------------------+ +| **Initials** | **Role** | ++================+====================+ +| OH | Director in Charge | ++----------------+--------------------+ : {tbl-colwidths="[30,70]"} diff --git a/packages/document-issue-io/tests/testoutput/test_to_pdf/06667-MXF-XX-XX-SH-M-20003.pdf b/packages/document-issue-io/tests/testoutput/test_to_pdf/06667-MXF-XX-XX-SH-M-20003.pdf index 611d596..db3e65c 100644 Binary files a/packages/document-issue-io/tests/testoutput/test_to_pdf/06667-MXF-XX-XX-SH-M-20003.pdf and b/packages/document-issue-io/tests/testoutput/test_to_pdf/06667-MXF-XX-XX-SH-M-20003.pdf differ diff --git a/packages/document-issue-io/tests/testoutput/test_to_pdf/title-page.pdf b/packages/document-issue-io/tests/testoutput/test_to_pdf/title-page.pdf index 2ad7f99..71195fe 100644 Binary files a/packages/document-issue-io/tests/testoutput/test_to_pdf/title-page.pdf and b/packages/document-issue-io/tests/testoutput/test_to_pdf/title-page.pdf differ diff --git a/packages/document-issue-io/tests/testoutput/test_to_pdf_loads_of_notes_and_issues/06667-MXF-XX-XX-SH-M-20003.md b/packages/document-issue-io/tests/testoutput/test_to_pdf_loads_of_notes_and_issues/06667-MXF-XX-XX-SH-M-20003.md index c97d8f2..474b4d7 100644 --- a/packages/document-issue-io/tests/testoutput/test_to_pdf_loads_of_notes_and_issues/06667-MXF-XX-XX-SH-M-20003.md +++ b/packages/document-issue-io/tests/testoutput/test_to_pdf_loads_of_notes_and_issues/06667-MXF-XX-XX-SH-M-20003.md @@ -48,19 +48,19 @@ Fordham LLP\ ### Contributions -+----------------+-------------------+ -| **Initials** | **Role** | -+================+===================+ -| OH | RoleEnum.director | -+----------------+-------------------+ -| OH | RoleEnum.director | -+----------------+-------------------+ -| OH | RoleEnum.director | -+----------------+-------------------+ -| OH | RoleEnum.director | -+----------------+-------------------+ -| OH | RoleEnum.director | -+----------------+-------------------+ ++----------------+--------------------+ +| **Initials** | **Role** | ++================+====================+ +| OH | Director in Charge | ++----------------+--------------------+ +| OH | Director in Charge | ++----------------+--------------------+ +| OH | Director in Charge | ++----------------+--------------------+ +| OH | Director in Charge | ++----------------+--------------------+ +| OH | Director in Charge | ++----------------+--------------------+ : {tbl-colwidths="[30,70]"} diff --git a/packages/document-issue-io/tests/testoutput/test_to_pdf_loads_of_notes_and_issues/06667-MXF-XX-XX-SH-M-20003.pdf b/packages/document-issue-io/tests/testoutput/test_to_pdf_loads_of_notes_and_issues/06667-MXF-XX-XX-SH-M-20003.pdf index 244961a..0d4bd49 100644 Binary files a/packages/document-issue-io/tests/testoutput/test_to_pdf_loads_of_notes_and_issues/06667-MXF-XX-XX-SH-M-20003.pdf and b/packages/document-issue-io/tests/testoutput/test_to_pdf_loads_of_notes_and_issues/06667-MXF-XX-XX-SH-M-20003.pdf differ diff --git a/packages/document-issue-io/tests/testoutput/test_to_pdf_loads_of_notes_and_issues/title-page.pdf b/packages/document-issue-io/tests/testoutput/test_to_pdf_loads_of_notes_and_issues/title-page.pdf index f497c14..44ad629 100644 Binary files a/packages/document-issue-io/tests/testoutput/test_to_pdf_loads_of_notes_and_issues/title-page.pdf and b/packages/document-issue-io/tests/testoutput/test_to_pdf_loads_of_notes_and_issues/title-page.pdf differ diff --git a/packages/document-issue-io/tests/testoutput/test_to_pdf_with_author/06667-MXF-XX-XX-SH-M-20003.md b/packages/document-issue-io/tests/testoutput/test_to_pdf_with_author/06667-MXF-XX-XX-SH-M-20003.md index 59141a5..321e3e0 100644 --- a/packages/document-issue-io/tests/testoutput/test_to_pdf_with_author/06667-MXF-XX-XX-SH-M-20003.md +++ b/packages/document-issue-io/tests/testoutput/test_to_pdf_with_author/06667-MXF-XX-XX-SH-M-20003.md @@ -48,11 +48,11 @@ Fordham LLP\ ### Contributions -+----------------+-------------------+ -| **Initials** | **Role** | -+================+===================+ -| OH | RoleEnum.director | -+----------------+-------------------+ ++----------------+--------------------+ +| **Initials** | **Role** | ++================+====================+ +| OH | Director in Charge | ++----------------+--------------------+ : {tbl-colwidths="[30,70]"} diff --git a/packages/document-issue-io/tests/testoutput/test_to_pdf_with_author/06667-MXF-XX-XX-SH-M-20003.pdf b/packages/document-issue-io/tests/testoutput/test_to_pdf_with_author/06667-MXF-XX-XX-SH-M-20003.pdf index 15cbe6e..530c1f7 100644 Binary files a/packages/document-issue-io/tests/testoutput/test_to_pdf_with_author/06667-MXF-XX-XX-SH-M-20003.pdf and b/packages/document-issue-io/tests/testoutput/test_to_pdf_with_author/06667-MXF-XX-XX-SH-M-20003.pdf differ diff --git a/packages/document-issue-io/tests/testoutput/test_to_pdf_with_author/title-page.pdf b/packages/document-issue-io/tests/testoutput/test_to_pdf_with_author/title-page.pdf index c96b243..4659b36 100644 Binary files a/packages/document-issue-io/tests/testoutput/test_to_pdf_with_author/title-page.pdf and b/packages/document-issue-io/tests/testoutput/test_to_pdf_with_author/title-page.pdf differ diff --git a/packages/document-issue-io/tests/testoutput/test_to_pdf_with_author_and_checked_by/06667-MXF-XX-XX-SH-M-20003.md b/packages/document-issue-io/tests/testoutput/test_to_pdf_with_author_and_checked_by/06667-MXF-XX-XX-SH-M-20003.md index a5edf30..3c9b334 100644 --- a/packages/document-issue-io/tests/testoutput/test_to_pdf_with_author_and_checked_by/06667-MXF-XX-XX-SH-M-20003.md +++ b/packages/document-issue-io/tests/testoutput/test_to_pdf_with_author_and_checked_by/06667-MXF-XX-XX-SH-M-20003.md @@ -48,11 +48,11 @@ Fordham LLP\ ### Contributions -+----------------+-------------------+ -| **Initials** | **Role** | -+================+===================+ -| OH | RoleEnum.director | -+----------------+-------------------+ ++----------------+--------------------+ +| **Initials** | **Role** | ++================+====================+ +| OH | Director in Charge | ++----------------+--------------------+ : {tbl-colwidths="[30,70]"} diff --git a/packages/document-issue-io/tests/testoutput/test_to_pdf_with_author_and_checked_by/06667-MXF-XX-XX-SH-M-20003.pdf b/packages/document-issue-io/tests/testoutput/test_to_pdf_with_author_and_checked_by/06667-MXF-XX-XX-SH-M-20003.pdf index 7e0f4cf..6707207 100644 Binary files a/packages/document-issue-io/tests/testoutput/test_to_pdf_with_author_and_checked_by/06667-MXF-XX-XX-SH-M-20003.pdf and b/packages/document-issue-io/tests/testoutput/test_to_pdf_with_author_and_checked_by/06667-MXF-XX-XX-SH-M-20003.pdf differ diff --git a/packages/document-issue-io/tests/testoutput/test_to_pdf_with_author_and_checked_by/title-page.pdf b/packages/document-issue-io/tests/testoutput/test_to_pdf_with_author_and_checked_by/title-page.pdf index 380d9f2..bb41d2c 100644 Binary files a/packages/document-issue-io/tests/testoutput/test_to_pdf_with_author_and_checked_by/title-page.pdf and b/packages/document-issue-io/tests/testoutput/test_to_pdf_with_author_and_checked_by/title-page.pdf differ diff --git a/packages/document-issue-io/tests/testoutput/test_to_pdf_with_markdown_content/06667-MXF-XX-XX-SH-M-20003.md b/packages/document-issue-io/tests/testoutput/test_to_pdf_with_markdown_content/06667-MXF-XX-XX-SH-M-20003.md index ebba4cf..1104225 100644 --- a/packages/document-issue-io/tests/testoutput/test_to_pdf_with_markdown_content/06667-MXF-XX-XX-SH-M-20003.md +++ b/packages/document-issue-io/tests/testoutput/test_to_pdf_with_markdown_content/06667-MXF-XX-XX-SH-M-20003.md @@ -48,11 +48,11 @@ Fordham LLP\ ### Contributions -+----------------+-------------------+ -| **Initials** | **Role** | -+================+===================+ -| OH | RoleEnum.director | -+----------------+-------------------+ ++----------------+--------------------+ +| **Initials** | **Role** | ++================+====================+ +| OH | Director in Charge | ++----------------+--------------------+ : {tbl-colwidths="[30,70]"} diff --git a/packages/document-issue-io/tests/testoutput/test_to_pdf_with_markdown_content/06667-MXF-XX-XX-SH-M-20003.pdf b/packages/document-issue-io/tests/testoutput/test_to_pdf_with_markdown_content/06667-MXF-XX-XX-SH-M-20003.pdf index 5d7eaec..ecdab3f 100644 Binary files a/packages/document-issue-io/tests/testoutput/test_to_pdf_with_markdown_content/06667-MXF-XX-XX-SH-M-20003.pdf and b/packages/document-issue-io/tests/testoutput/test_to_pdf_with_markdown_content/06667-MXF-XX-XX-SH-M-20003.pdf differ diff --git a/packages/document-issue-io/tests/testoutput/test_to_pdf_with_markdown_content/title-page.pdf b/packages/document-issue-io/tests/testoutput/test_to_pdf_with_markdown_content/title-page.pdf index 83cf603..c3eb4f0 100644 Binary files a/packages/document-issue-io/tests/testoutput/test_to_pdf_with_markdown_content/title-page.pdf and b/packages/document-issue-io/tests/testoutput/test_to_pdf_with_markdown_content/title-page.pdf differ diff --git a/packages/document-issue/src/document_issue/document_issue.py b/packages/document-issue/src/document_issue/document_issue.py index bd010c9..2bcdf78 100644 --- a/packages/document-issue/src/document_issue/document_issue.py +++ b/packages/document-issue/src/document_issue/document_issue.py @@ -107,7 +107,7 @@ def roles_table(self): map_title_to_field = {v.title: k for k, v in DocumentRole.model_fields.items()} li_document_roles = [] for document_role in self.document_role: - di_document_role = document_role.model_dump() + di_document_role = document_role.model_dump(mode="json") di_document_role_with_title = {} for header in headers: if header in map_title_to_field.keys():