Commit 4b402f7
committed
fix(schema): resolve LLMProvider $ref by moving nested $defs to root level
The schema generator was creating nested $defs within executor input schemas,
causing $ref resolution failures for types like LLMProvider. This fix extracts
and merges all nested $defs to the root level during schema generation, using
the same pattern already applied to WorkflowOutputSchema.
This ensures that $ref paths like #/$defs/LLMProvider correctly resolve to
types defined at the root level, fixing the "$ref '/$defs/LLMProvider' can
not be resolved" error introduced in PR #20.
- Extracts nested $defs from executor input schemas
- Merges them to root-level $defs before inlining
- Maintains consistency with WorkflowOutputSchema pattern
- All 93 tests pass, schema validates correctly1 parent aa20298 commit 4b402f7
1 file changed
Lines changed: 11 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
612 | 612 | | |
613 | 613 | | |
614 | 614 | | |
615 | | - | |
616 | | - | |
617 | | - | |
618 | | - | |
619 | | - | |
620 | | - | |
621 | | - | |
622 | | - | |
623 | | - | |
624 | | - | |
625 | | - | |
626 | | - | |
627 | | - | |
628 | 615 | | |
629 | 616 | | |
630 | 617 | | |
| |||
1357 | 1344 | | |
1358 | 1345 | | |
1359 | 1346 | | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
1360 | 1358 | | |
1361 | | - | |
1362 | | - | |
1363 | | - | |
1364 | | - | |
1365 | | - | |
1366 | | - | |
1367 | | - | |
1368 | | - | |
1369 | | - | |
1370 | | - | |
1371 | | - | |
1372 | | - | |
1373 | | - | |
1374 | 1359 | | |
1375 | 1360 | | |
1376 | 1361 | | |
| |||
0 commit comments