Skip to content

add server side validation for mandatory param #130

@azhamn

Description

@azhamn

Currently in add alert/case apis we are not doing any validations. The mandatory checks are done from the client side (web portal).

  • We need to add server side validation as well for mandatory params: so far messages/info in english is required.
  • For the optional languages (si/ta) if the title is set, we must ensure the body is also present if not there will be incomplete info from user's pov

It's better to have a defined error response format as well (see - #131)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions