Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initial validation #3

Merged
merged 2 commits into from
Feb 26, 2024
Merged

initial validation #3

merged 2 commits into from
Feb 26, 2024

Conversation

dauphin3
Copy link
Contributor

Validation for Templates and Grant Period, partial start for Pools.. awaiting merge to continue

"Label can't be empty".to_string(),
));
}
if criteria.weight <= 0 {
Copy link
Contributor

Choose a reason for hiding this comment

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

weight is unsigned so will never be negative

) -> ExternResult<ValidateCallbackResult> {
Ok(ValidateCallbackResult::Valid)
if time_period.start_at > time_period.end_at {
Copy link
Contributor

Choose a reason for hiding this comment

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

can't be equal either

@dauphin3 dauphin3 merged commit 80f8ab9 into main Feb 26, 2024
1 check failed
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