Commit e64fb35
committed
Make text field optional in file annotation content schema
The file-parser plugin returns content arrays containing both text
and image elements. Image elements (type: "image_url") do not have
a text property, causing validation errors.
This change makes the text field optional to support both element
types whilst maintaining backwards compatibility with text-only
content.
Fixes validation error: "Invalid input: expected string, received undefined"
Signed-off-by: Sora Morimoto <sora@morimoto.io>1 parent 9607d47 commit e64fb35
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
| 240 | + | |
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
| |||
0 commit comments