Skip to content

UKPRN Nullable format validator - #35

Open
shaun-downey-education wants to merge 1 commit into
mainfrom
UkpnNonNullableValidator
Open

UKPRN Nullable format validator#35
shaun-downey-education wants to merge 1 commit into
mainfrom
UkpnNonNullableValidator

Conversation

@shaun-downey-education

Copy link
Copy Markdown
Contributor
  • Added an additional nullable Ukrpn validator as a placeholder to replace the existing once changed to non nullable.

@sonarqubecloud

sonarqubecloud Bot commented Jul 1, 2024

Copy link
Copy Markdown

.When(model => model.Ukprn.HasValue);
}

public static IRuleBuilderOptions<T, long?> CheckNullableUkprnFormat<T>(this IRuleBuilder<T, long?> ruleBuilder) where T : INullableUkprnEntity

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this will invalidate in case of null, no? We need a test added for null value resulting in valid request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants