Skip to content

Commit 2c8f040

Browse files
Making text_as_html optional as it can be null
1 parent cb10237 commit 2c8f040

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/datacustomcode/function/feature_types/chunking.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
from typing import (
2121
Dict,
2222
List,
23+
Optional,
2324
Union,
2425
)
2526

@@ -103,8 +104,8 @@ class SearchIndexChunkingV1Metadata(BaseModel):
103104
description="Page number in the source document (0-based)",
104105
examples=[1],
105106
)
106-
text_as_html: str = Field(
107-
default="",
107+
text_as_html: Optional[str] = Field(
108+
default=None,
108109
description="HTML representation of the document text",
109110
examples=["<p>Online Remittance Instructions</p>"],
110111
)

0 commit comments

Comments
 (0)