OpenAPI enums vs const: closed lists, open-ended strings, and how to add a value without breaking clients
An enum is a promise the server only accepts those values; a const is one fixed value; an open string accepts anything. Teams blur the three and ship a breaking change every time they add an option. Here is the decision table, extensible enums, and what codegen and AI callers do with each shape.
Read article