Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

[ADMINAPI-1314] - POST to profile with line breaks returns 400 with nice description#377

Merged
dfernandez-gap merged 3 commits intomainfrom
ADMINAPI-1314
Nov 11, 2025
Merged

[ADMINAPI-1314] - POST to profile with line breaks returns 400 with nice description#377
dfernandez-gap merged 3 commits intomainfrom
ADMINAPI-1314

Conversation

@DavidJGapCR
Copy link

@DavidJGapCR DavidJGapCR commented Nov 10, 2025

When a user tried to send a post with an invalid JSON he should get a descriptive error message with a 400 bad request.

I tried to add a new e2e test to cover this scenario but we have a limitation associated to how postman saves the collections.
Since postman saves the saves in a JSON format, when I export the file it escapes the line breaks, making the test invalid. So, I added it (first commit) and then I had to remove it (second commit).

@github-actions
Copy link

github-actions bot commented Nov 10, 2025

Test Results

338 tests   337 ✅  14s ⏱️
  4 suites    1 💤
  4 files      0 ❌

Results for commit e4d0d81.

♻️ This comment has been updated with latest results.

@DavidJGapCR DavidJGapCR marked this pull request as ready for review November 10, 2025 17:48
@dfernandez-gap dfernandez-gap merged commit 4c05d57 into main Nov 11, 2025
20 checks passed
@dfernandez-gap dfernandez-gap deleted the ADMINAPI-1314 branch November 11, 2025 16:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants