Commit 95eeac3
fix(api): include content in octad GET responses
OctadResponse now returns title, body, metadata, and types from the
document and semantic modalities — previously only returned boolean
has_* flags. Also routes OctadInput.metadata into Document.metadata
during create/update so metadata survives roundtrip. This unblocks
downstream consumers (stapeln, hypatia) that need to read back stored
data. Fields use skip_serializing_if to keep responses clean when
modalities are unpopulated.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent ef78c96 commit 95eeac3
2 files changed
Lines changed: 34 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
374 | 374 | | |
375 | 375 | | |
376 | 376 | | |
377 | | - | |
| 377 | + | |
| 378 | + | |
378 | 379 | | |
379 | 380 | | |
380 | 381 | | |
381 | 382 | | |
| 383 | + | |
382 | 384 | | |
383 | 385 | | |
384 | 386 | | |
| |||
388 | 390 | | |
389 | 391 | | |
390 | 392 | | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
391 | 402 | | |
392 | 403 | | |
393 | 404 | | |
| |||
400 | 411 | | |
401 | 412 | | |
402 | 413 | | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
403 | 424 | | |
404 | 425 | | |
405 | 426 | | |
| |||
416 | 437 | | |
417 | 438 | | |
418 | 439 | | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
419 | 444 | | |
420 | 445 | | |
421 | 446 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
430 | 430 | | |
431 | 431 | | |
432 | 432 | | |
| 433 | + | |
433 | 434 | | |
434 | 435 | | |
435 | 436 | | |
436 | 437 | | |
437 | 438 | | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
438 | 444 | | |
439 | 445 | | |
440 | 446 | | |
| |||
804 | 810 | | |
805 | 811 | | |
806 | 812 | | |
807 | | - | |
| 813 | + | |
808 | 814 | | |
809 | 815 | | |
810 | 816 | | |
| |||
1050 | 1056 | | |
1051 | 1057 | | |
1052 | 1058 | | |
1053 | | - | |
| 1059 | + | |
1054 | 1060 | | |
1055 | 1061 | | |
1056 | 1062 | | |
| |||
0 commit comments