HemmeligOrg / Hemmelig.app

Keep your sensitive information out of chat logs, emails, and more with encrypted secrets.
https://hemmelig.app
MIT License
681 stars 57 forks source link

fix: leverage the fastify schema to validate input #278

Closed bjarneo closed 5 months ago

bjarneo commented 5 months ago

This pull request primarily focuses on improving the validation and error handling in the application. The changes are spread across multiple files, mainly in the src/client/routes and src/server/controllers directories. The changes include updating status codes for error responses, replacing error with message in error handling, adding schema validation for request bodies, and removing some redundant validation checks.

Error Handling Improvements:

Schema Validation Additions:

Minor Changes:

sonarcloud[bot] commented 5 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
1.4% Duplication on New Code

See analysis details on SonarCloud