aws-cli icon indicating copy to clipboard operation
aws-cli copied to clipboard

Replace Argument string with Enum.

Open sergyDwhiz opened this issue 1 year ago • 0 comments

Initially, we were using string literals to represent different argument types such as 'JSON', 'document', 'streaming blob', and 'tagged union structure'. This approach can lead to potential issues such as typos and inconsistencies, and it makes code harder to maintain. To improve this, I replaced these string literals with an Enum class, providing a single source of truth for the argument types, reducing the chance of errors and making code more maintainable. If we need to add, remove, or change argument types in the future, we can do it in one place, and the changes will propagate throughout the code.

sergyDwhiz avatar Dec 22 '23 11:12 sergyDwhiz