Skip to content

[Feat]: [Add Validation for Paper] #429

@TejasNair9977

Description

@TejasNair9977

Description

There needs to be validation for all IDs in here. The validation must be done in the controller. You need to provide the service with a proper filter so that it can check if the ID provided in req.body actually exists for each collection that it belongs to. For example,
In req.body for adding Paper, it needs to check that the provided IDs actually exist in the database. As always, never trust that the user is providing valid data.

Use Case

It will make sure that data given by the user to the database is valid.

Proposed Solution

Right before the function that creates the document, check if the IDs provided by the user is valid.

Metadata

Metadata

Labels

Issue Size: 3Something that has reference but needs a lot of changePriority: HighNeeds to be done ASAPenhancementNew feature or requestgood first issueGood for newcomers

Type

No type

Projects

Status

In Progress

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions