invitations/accept sending an empty value for invitationUrl returns 500 error instead of 400

Request:

curl --location 'https://ssi-dev.vereign.com/api-issuer/api/v1/invitations/accept' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
  "invitationUrl": ""
 
}'

Response:

{
    "statusCode": 500,
    "message": "Expected the arguments to be of type `string`"
}