Commit a7ee7b3
committed
Document query parameter type matching for API integrations
A/B run 4 of 5 generated `limit: '25'` in an extension's `falconApi` call while the other four generated `limit: 25`. All five OpenAPI specs declare `limit` as `type: integer`, so the quoted value failed server-side schema validation with `got string want integer` and that extension never fetched data.
`apiIntegration().execute()` types params as `Record<string, unknown>` (`foundry-js` `src/abstraction/api-integration.ts`), so a quoted number type-checks and builds cleanly — the mismatch only appears at runtime. The extension still renders, which makes it look like an API or credential error rather than a bug in the generated code. Verification scored that app's UI as passing.
Adds the constraint to the API integration section with a correct/incorrect pair, and a Common Pitfalls entry for anyone scanning for gotchas.1 parent fe97080 commit a7ee7b3
5 files changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
Loading
Loading
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
176 | 186 | | |
177 | 187 | | |
178 | 188 | | |
| |||
330 | 340 | | |
331 | 341 | | |
332 | 342 | | |
| 343 | + | |
333 | 344 | | |
334 | 345 | | |
335 | 346 | | |
| |||
0 commit comments