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

Validations for Link APIs #3

Open
navinpai opened this issue Oct 1, 2022 · 0 comments
Open

Validations for Link APIs #3

navinpai opened this issue Oct 1, 2022 · 0 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@navinpai
Copy link
Member

navinpai commented Oct 1, 2022

Link APIs have very limited validations in place, primarily targeted to the surface area of SlashGo extension. However, we need to add more validations around these APIs to handle invalid API payloads. Some examples include:

  • payload with shortLink of size 0 i.e "" should return an error
  • payload with type dynamic should contain <var> in the fullUrl field
  • payload field type can only be static or dynamic today.
  • Other validations for Edit/Delete Link API

Some of these are identified by TODO in the controller. Ideally, would be nice if this could be done alongside #2 to ensure we write tests for the new validations as well.

@navinpai navinpai added good first issue Good for newcomers help wanted Extra attention is needed labels Oct 1, 2022
@navinpai navinpai changed the title Validations for Link API Validations for Link APIs Oct 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant