You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While trying to register new entity with PUT /catalog/register endpoint you are allowed to provide optional ID field, its value should follow uuid format and length which is validated, but incorrect HTTP code is returned
Reproduction Steps
Start Consul (for example in docker)
Try to register new entity with PUT /catalog/register endpoint setting incorrect ID value: "ID": "test"
Notice 500 Internal Server Error code with correct exception message
Overview of the Issue
While trying to register new entity with
PUT /catalog/register
endpoint you are allowed to provide optional ID field, its value should follow uuid format and length which is validated, but incorrect HTTP code is returnedReproduction Steps
PUT /catalog/register
endpoint setting incorrect ID value:"ID": "test"
500 Internal Server Error
code with correct exception messageExpected behavior
400 HTTP BAD_REQUEST should be returned
Full example payload
The text was updated successfully, but these errors were encountered: