Skip to content

Input Field validation  #234

Open
Open
@Ronnie018

Description

@Ronnie018

Description, please be as detailed as possible:

The fields in the aplication need validators to check for problems before sending data to the database;
This validations can include:

  • null or undefined fields;
  • fields without valid text (spaces cannot validade);
  • Be creative; if you think of something that can be checked, include this;

Some fields that need to be validated:

  • Login and Sign-in Forms;
  • Posts;
  • Comment editions;
  • Messages (if page is done);

Tips:

  • New comments (see code in src/components/Posts/comments/addComments/index.jsx) already have a basic validation that can be found in the services folder (src/services/validators/messagingValidations);
  • All validations should be in the validators folder;

I'm using short circuit validation (example below) but, feel free to use another pattern.

example

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions