Skip to content

Conversation

@Programador-jr
Copy link
Owner

Description:
This PR introduces the following improvements and fixes to the API:

  • Enhanced Error Handling: Improved validation for query parameters like fields, lang, page, and limit, ensuring clearer error messages and better feedback for users.
  • Refactored Error Messages: Standardized and improved error messages in both English and Portuguese for consistency.
  • Dynamic Filter Validation: Implemented stricter validation for filter parameters to ensure only valid values are processed.
  • Validation and Fixes:
    • Fixed an issue where invalid fields parameters were not correctly handled.
    • Improved filtering logic to prevent incorrect values from appearing in available options.
    • Optimized response structure to ensure accurate multilingual support.

Checklist:

  • Improved parameter validation.
  • Standardized error messages across the API.
  • Enhanced filter validation logic.
  • Optimized response handling for multilingual support.

Impact:
These updates improve the API’s robustness, making error handling more reliable and ensuring better validation of user inputs.

@vercel
Copy link

vercel bot commented Feb 3, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
exercise-api ✅ Ready (Inspect) Visit Preview Feb 3, 2025 0:14am

@Programador-jr Programador-jr merged commit 9d3e2cd into main Feb 3, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants