Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v missing from apiVersion should either throw exception or automatic insertion #419

Open
AdamHess opened this issue Oct 17, 2024 · 0 comments

Comments

@AdamHess
Copy link

When specifying the apiVersion if entered incorrectly will throw exception with unhelpful error message (i.e., resource does not exist) which make sense since its directly being used in the url to generate the request.

My suggestion is either:

  1. Input Validation, if the v is missing as the prefix throw exception stating so
  2. automatically insert the v prefix if missing (and log a warning maybe?)
  3. change the data type to a decimal to make it clear its a numeric and not as nebulous as a string.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant