Skip to content

Commit

Permalink
Additional commit for CFM-371
Browse files Browse the repository at this point in the history
  • Loading branch information
Benn Oshrin committed Jul 26, 2024
1 parent 22e9679 commit 5716c19
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,12 @@ public function validationDefault(Validator $validator): Validator {
]);
$validator->notEmptyString('attribute');

// The required fields here aren't ideal, since they vary by attribute
$validator->add('affiliation_type_id', [
'content' => ['rule' => 'isInteger']
]);
$validator->notEmptyString('affiliation_type_id');
$validator->allowEmptyString('affiliation_type_id');

// The required fields here aren't ideal, since they vary by attribute
$this->registerStringValidation($validator, $schema, 'ad_hoc_tag', false);

$validator->add('comparison', [
Expand All @@ -182,12 +182,12 @@ public function validationDefault(Validator $validator): Validator {
$validator->add('target_cou_id', [
'content' => ['rule' => 'isInteger']
]);
$validator->notEmptyString('target_cou_id');
$validator->allowEmptyString('target_cou_id');

$validator->add('target_affiliation_type_id', [
'content' => ['rule' => 'isInteger']
]);
$validator->notEmptyString('target_affiliation_type_id');
$validator->allowEmptyString('target_affiliation_type_id');

return $validator;
}
Expand Down

0 comments on commit 5716c19

Please sign in to comment.