Commit fccc16d
committed
fix: Generate a valid any() call for required parameter checks
The required parameter guard generated one any() argument per parameter,
so every call raised TypeError instead of validating: any() takes a single
iterable, not a variadic list of conditions. Wrap the conditions in a list
and regenerate.
Also fix the fallout that this masked in the rest of the suite:
- Type the put and patch client helpers as returning the decoded body,
matching get, post and delete, now that generated routes use them.
- Set the route metadata attributes through Any, since a function does not
declare them.
- Allow TODO comments, which the test suite uses to track routes that
cannot use the generated method yet.
- Assert the GET request line and empty body in the default headers test,
and drive the invalid input test through a route that still takes a JSON
payload, now that /devices/get is a GET route.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFYHA1UHvARfcMBkUnWgGs1 parent 255704d commit fccc16d
46 files changed
Lines changed: 653 additions & 506 deletions
File tree
- codegen/layouts/partials
- seam
- routes
- test
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
95 | 101 | | |
96 | 102 | | |
97 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments