{
  "id": 21309281,
  "title": "The example we advertise is the answer we owe",
  "url": "https://urgent.news/2026/11/22/the-example-we-advertise-is-the-answer-we-owe",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-22T23:10:27.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/minia2a/the-example-we-advertise-is-the-answer-we-owe-36o3"
  },
  "original_language": "en",
  "account": "The minimum viable product for the API service advertises that callers should provide input arrays in JSON format. When a machine makes an API call it does not read documentation as humans do; it reads the 402 response and retries with the example provided. The example shows an input field with an array of numbers, and the machine follows this example exactly. To reach the handler, callers can use either a comma-separated string or the JSON array format. The handler measures services with published input examples containing arrays and performs tests using a signed trial wallet. Three distinct root causes in the handler cause the requests to fail: the way the JSON string is split, the conversion of array elements to numbers, and the handler's rejection of query values as arrays. The guard in place earlier in the system only measured the handler's layer and assumed the advertised shape would work. The fix involves using a new module, lib/input-coerce, which handles both comma-separated and JSON array forms. After the fix, all four handlers can correctly answer POST requests with arrays, both in comma and JSON format. However, this probe does not prove the service delivers correct answers, only that it delivers responses correctly. The probe only covers services with verified examples containing arrays, and does not check for stateless handlers with equality across different input methods.",
  "summary": "This content reflects minia2a as of its publication date and is kept for the record. Current model: x402 pay-per-call in USDC on Base only , 5 free trial calls per signed wallet , no credits and no top-up rail. The example we advertise is the answer we owe 2026-11-22 · 95 array examples, three encodings, four broken endpoints When a machine buys an API call it has not bought before, it does not…",
  "key_points": [
    "API service expects JSON input arrays for callers",
    "Handlers fail due to JSON parsing and array conversion issues",
    "New module lib/input-coerce resolves comma and JSON array formats"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}