fix bug when validation return true but we have errors in the json. Thanks Enrico Martelli ï»which found this bug.