We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6b9e55 commit 0ca56ecCopy full SHA for 0ca56ec
sda-validator/orchestrator/api/api.go
@@ -71,8 +71,9 @@ func (api *validatorAPIImpl) ResultGet(c *gin.Context) {
71
}
72
73
func (api *validatorAPIImpl) result(c *gin.Context, validationID string, userID *string) {
74
- if validationID == "" {
75
- c.AbortWithStatus(http.StatusBadRequest)
+
+ if _, err := uuid.Parse(validationID); err != nil {
76
+ c.JSON(http.StatusBadRequest, gin.H{"error": fmt.Sprintf("Invalid validation id: %s", validationID)})
77
78
return
79
0 commit comments