Replace Function Arguments with Enumerations to Improve IntelliSense and Usability #22123
ashwith2427
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
|
Have you got some examples of functions you think should be using enumerations? We do support this in sdk generation, and we make use of it in some places in the core sdks as well, but it does depend on the underlying data advertising as an enumeration rather than unbounded value. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I suggest replacing function arguments that currently accept raw values (such as strings or integers) with enumerations. Using enumerations would allow developers to see the available options directly through IntelliSense instead of searching for the valid values.
This change would improve developer experience by making the API more discoverable, reducing the chance of passing invalid values, and speeding up development. Enumerations clearly define the allowed options and make the code more readable and maintainable.
Beta Was this translation helpful? Give feedback.
All reactions