fix: should not allow an empty enum definition.