Skip to content

Commit

Permalink
🦺 Increase max_length of notes
Browse files Browse the repository at this point in the history
  • Loading branch information
ollyhensby committed Jan 26, 2024
1 parent 544f2a4 commit c9b8f5d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/document-issue/src/document_issue/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ def check_include_author_and_checked_by(self) -> "FormatConfiguration":

Note = Annotated[
str,
Len(max_length=1000),
WithJsonSchema({"type": "string", "maxLength": 1000, "layout": {"width": "100%"}}),
Len(max_length=1e8),
WithJsonSchema({"type": "string", "maxLength": 1e8, "layout": {"width": "100%"}}),
]
# ^ json_schema_extra not added to schema

Expand Down
10 changes: 7 additions & 3 deletions packages/document-issue/src/document_issue/issue.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@


description_author = """
the person who authored the work.""".replace("\n", "")
the person who authored the work.""".replace(
"\n", ""
)
description_checked_by = """
the person who checked the work.
""".replace("\n", "")
""".replace(
"\n", ""
)

# TODO: who issued to?

Expand Down Expand Up @@ -61,7 +65,7 @@ class Issue(BaseModel):
"free field where the Engineer can briefly summarise changes since previous"
" issue"
),
max_length=1000,
max_length=1e8,
json_schema_extra=dict(column_width=300),
)

Expand Down

0 comments on commit c9b8f5d

Please sign in to comment.