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

Validation of Api Values #81

Open
1 task done
anishmu20 opened this issue Oct 19, 2024 · 4 comments
Open
1 task done

Validation of Api Values #81

anishmu20 opened this issue Oct 19, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request gssoc GirlScript Summer Of Code gssoc-ext hacktoberfest hacktoberfest-accepted level2 GirlScript Summer Of Code - 25 points status: ready for dev You can asked for this issue to be assigned (if not already assigned)

Comments

@anishmu20
Copy link
Contributor

Is this feature already requested?

  • I have checked "open" and "closed" issues, and this is not a duplicate.

Problem or Missing Functionality

Currently, the API does not validate user input properly. This means that when users or systems send requests, data is accepted without checks for correctness, format, or constraints. For instance, fields like email addresses, phone numbers, or dates can be incorrectly formatted, leading to inconsistent data being stored in the system.

Feature Description

This feature adds input validation to the API to ensure that data received from client requests adheres to the defined constraints and business rules before processing. By validating inputs, the API can enforce data integrity, prevent invalid data from being persisted to the database, and improve security by mitigating the risk of malicious inputs.

Screenshots

No response

Would you like to work on this feature?

Yes

Implementation Plan

To implement validation in Spring Boot, identify key fields in the DTO classes that require validation, such as required fields (e.g., name, email), formatted fields (e.g., email, phone), and fields with constraints (e.g., age, price, string length). Use standard validation annotations like @NotNull, @SiZe, @Email, and @pattern to enforce these rules. Update the DTO classes with these annotations to ensure that all incoming data is validated before reaching the service layer. This helps maintain data integrity, improves user feedback, and prevents invalid data from being processed.

@anishmu20 anishmu20 added the status: awaiting triage Waiting for maintainers to verify (please do not start work on this yet) label Oct 19, 2024
@Guhapriya01
Copy link
Collaborator

Guhapriya01 commented Oct 19, 2024

@anishmu20, thanks for the detailed implementation plan! Input validation is crucial for ensuring data integrity and security within the API, and I believe this enhancement could significantly improve our system.

I’d like to assign this issue to you for implementation. If you need any assistance while working on this, feel free to reach out!

@Guhapriya01 Guhapriya01 added enhancement New feature or request hacktoberfest-accepted hacktoberfest gssoc GirlScript Summer Of Code gssoc-ext level2 GirlScript Summer Of Code - 25 points and removed status: awaiting triage Waiting for maintainers to verify (please do not start work on this yet) labels Oct 19, 2024
@Guhapriya01 Guhapriya01 added the status: ready for dev You can asked for this issue to be assigned (if not already assigned) label Oct 19, 2024
@Guhapriya01
Copy link
Collaborator

Hi @anishmu20! Just wanted to check in and see how the input validation work is going. Let me know if you need any help with the implementation!

@anishmu20
Copy link
Contributor Author

hii sorry for delay i am working on it will be done in next 2 to 3 days .

@Guhapriya01
Copy link
Collaborator

No problem, thanks for the update!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request gssoc GirlScript Summer Of Code gssoc-ext hacktoberfest hacktoberfest-accepted level2 GirlScript Summer Of Code - 25 points status: ready for dev You can asked for this issue to be assigned (if not already assigned)
Projects
None yet
Development

No branches or pull requests

2 participants