Skip to content

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

@AdamHess

Description

@AdamHess

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions