eclipse-tractusx / sldt-semantic-hub

Apache License 2.0
7 stars 11 forks source link

fix: Handle null SemanticModelStatus with 400 Bad Request in save and update APIs #290

Open mittalVaghela opened 2 months ago

mittalVaghela commented 2 months ago

Description

This PR for save and update api to properly handle cases where the SemanticModelStatus parameter is null. Instead of resulting in an internal server error (HTTP 500), the application now returns a 400 Bad Request with a descriptive error message.

Fix

Issue:

Fixes #289

Pre-review checks

Please ensure to do as many of the following checks as possible, before asking for committer review:

sonarcloud[bot] commented 2 months ago

Quality Gate Passed Quality Gate passed

Issues
2 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud