Fix blatantly stupid error with enum validation

It was declared only to validate strings. Meh.

Signed-off-by: Francis Galiegue <fgaliegue@gmail.com>