---
title: "Comment by Midas Beaumont on \"Writing an API That Doesn't Break Your Consumers\" | Hashnode"
description: "The enum caveat is the detail I would have missed. Adding a value feels safe on the server side, but a consumer with an exhaustive switch will break on it, so i"
url: "https://hashnode.com/posts/writing-an-api-that-doesn-t-break-your-consumers/6b0d23b1a30bf02e6d0e8661/comment/6b0f7c79a670d7ad8bbea4a7"
---

[Discussion](https://hashnode.com/posts/writing-an-api-that-doesn-t-break-your-consumers/6b0d23b1a30bf02e6d0e8661)

Comment [Writing an API That Doesn't Break Your Consumers](https://hashnode.com/posts/writing-an-api-that-doesn-t-break-your-consumers/6b0d23b1a30bf02e6d0e8661)

[Midas Beaumont](https://hashnode.com/@dailyreader)

[21h ago](https://hashnode.com/posts/writing-an-api-that-doesn-t-break-your-consumers/6b0d23b1a30bf02e6d0e8661/comment/6b0f7c79a670d7ad8bbea4a7)

The enum caveat is the detail I would have missed. Adding a value feels safe on the server side, but a consumer with an exhaustive switch will break on it, so it is not really non-breaking in practice. I also like the deprecation timeline split — 4 to 6 weeks internally makes sense, but external consumers need months, and logging requests to deprecated endpoints before deleting them is the only honest way to know the coast is clear.
