Api Validation failed

Your validator is incorrect, you’re checking if isEmpty and negating the result, i.e. if value is not empty it returns false which you negate to true and if statement executes.