Skip to content

VerRule validation rule #488

@Mr-Leshiy

Description

@Mr-Leshiy

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 VerRule validation rule type with the check method as other validation rules.
pub(crate) struct VerRule; 
  • As an implementation of the VerRule::check must be the current validate_id_and_ver logic.
  • Get rid of validate_id_and_ver function.
  • Add VerRule into the Rules type as a field
struct Rules {
...
 ver: VerRule,
...
}

Metadata

Metadata

Assignees

Labels

squad: gatekeepersCatalyst App Backend, System Development & Integration Team

Type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions