{
  "id": 958740,
  "title": "The value was in nine places and one enum, and the enum was the only one that ran",
  "url": "https://urgent.news/2026/08/15/the-value-was-in-nine-places-and-one-enum-and-the-enum-was-the-only",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-08-15T05:09:42.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/lumorakids/the-value-was-in-nine-places-and-one-enum-and-the-enum-was-the-only-one-that-ran-5ck9"
  },
  "original_language": "en",
  "account": "The birthday theme caused issues for the picture-book generator service. It was added to nine places in the system, but only one enum gate prevented it from functioning properly. The enum gate had never encountered the seventh theme, so when the seventh theme was selected by a user, the request returned a 400 error. The issue stemmed from a hand-written schema in a route that was not updated when the new theme was added. The unit suite and production testing did not detect the problem because they did not exercise the edge case. The validation test passed because the reality had not caught up with the new theme. Fixing the issue required adding the birthday theme to the pipeline, which required three requests to the API gate. The theme was intended to represent something observed rather than counted, and it was meant to enhance the birthday gift experience.",
  "summary": "You add a value to a feature. It goes into the type union, into the metadata map the create form renders from, into the access table, into the shelf that decides what appears on the landing pages, into the sitemap. You write sample content for it. You run the suite. Green. Then someone opens the site, picks the new option, and the request comes back 400 Invalid input — every time, for everybody,…",
  "key_points": [
    "Birthday theme added to nine system places",
    "Only one enum gate caused functionality issue",
    "Fix required three API gate requests"
  ],
  "editors_take": "The issue highlights a gap in the system's testing and validation processes, which failed to detect the problem until a user encountered the edge case and triggered an error.",
  "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."
}