Commit d74ebee
committed
Fix _meta parameter passing in TextResourceContents and BlobResourceContents
Use the field name 'meta' instead of the alias '_meta' when constructing
Pydantic model instances. The alias is only used for JSON serialization.
This fixes a bug where passing **{'_meta': meta} would cause Pydantic
validation errors since '_meta' is an alias, not a field name.1 parent c3117b6 commit d74ebee
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
328 | | - | |
| 328 | + | |
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
337 | | - | |
| 337 | + | |
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
| |||
0 commit comments