Skip to content

Validations for Link APIs #3

@navinpai

Description

@navinpai

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions