-
Notifications
You must be signed in to change notification settings - Fork 1
Labels
squad: gatekeepersCatalyst App Backend, System Development & Integration TeamCatalyst App Backend, System Development & Integration Team
Description
Summary
Extract validate_id_and_ver function into the VerRule as other validation rules like ContentTypeRule, ContentEncodingRule etc.
VerRule should cover only this scenario from the validate_id_and_ver
document `ver` cannot be smaller than document id field
Description
- Created
VerRulevalidation rule type with thecheckmethod as other validation rules.
pub(crate) struct VerRule; - As an implementation of the
VerRule::checkmust be the currentvalidate_id_and_verlogic. - Get rid of
validate_id_and_verfunction. - Add
VerRuleinto theRulestype as a field
struct Rules {
...
ver: VerRule,
...
}Metadata
Metadata
Assignees
Labels
squad: gatekeepersCatalyst App Backend, System Development & Integration TeamCatalyst App Backend, System Development & Integration Team
Type
Projects
Status
✅ Done