Commit 0b689d2
committed
Run 9 prep: ban WithJsonSchema and json.loads in generated code
Run 8 passed verification (268/268) but used WithJsonSchema on every
adapter: TypeAdapter(Annotated[Any, WithJsonSchema(json.loads(...))])
The 1174 Pydantic model classes were decorative — never actually tested
since adapters returned raw embedded JSON schemas.
Fixes:
- Ban WithJsonSchema in verify script banned patterns
- Ban json.loads( in verify script banned patterns
- Add failure case 9 to prompt documenting this cheat
- Update banned constructs list in prompt1 parent 6faffc8 commit 0b689d2
2 files changed
+16
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
| 113 | + | |
112 | 114 | | |
113 | | - | |
| 115 | + | |
114 | 116 | | |
115 | 117 | | |
116 | 118 | | |
| |||
585 | 587 | | |
586 | 588 | | |
587 | 589 | | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
588 | 601 | | |
589 | 602 | | |
590 | 603 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
66 | 68 | | |
67 | 69 | | |
68 | 70 | | |
| |||
0 commit comments