Allow setting "id" property on validators.