@@ -22,11 +22,7 @@ use crate::{
2222 doc_types:: {
2323 BRAND_PARAMETERS , CAMPAIGN_PARAMETERS , CATEGORY_PARAMETERS , PROPOSAL , PROPOSAL_COMMENT ,
2424 PROPOSAL_COMMENT_FORM_TEMPLATE , PROPOSAL_FORM_TEMPLATE , PROPOSAL_SUBMISSION_ACTION ,
25- } ,
26- metadata:: DocType ,
27- providers:: { CatalystSignedDocumentProvider , VerifyingKeyProvider } ,
28- signature:: { tbs_data, Signature } ,
29- CatalystSignedDocument , ContentEncoding , ContentType ,
25+ } , metadata:: DocType , providers:: { CatalystSignedDocumentProvider , VerifyingKeyProvider } , signature:: { tbs_data, Signature } , validator:: { id:: IdRule , ver:: VerRule } , CatalystSignedDocument , ContentEncoding , ContentType
3026} ;
3127
3228/// A table representing a full set or validation rules per document id.
@@ -43,8 +39,8 @@ fn proposal_rule() -> Rules {
4339 CATEGORY_PARAMETERS . clone( ) ,
4440 ] ;
4541 Rules {
46- id : None ,
47- ver : None ,
42+ id : Some ( IdRule ) ,
43+ ver : Some ( VerRule ) ,
4844 content_type : ContentTypeRule {
4945 exp : ContentType :: Json ,
5046 } ,
@@ -79,8 +75,8 @@ fn proposal_comment_rule() -> Rules {
7975 CATEGORY_PARAMETERS . clone( ) ,
8076 ] ;
8177 Rules {
82- id : None ,
83- ver : None ,
78+ id : Some ( IdRule ) ,
79+ ver : Some ( VerRule ) ,
8480 content_type : ContentTypeRule {
8581 exp : ContentType :: Json ,
8682 } ,
@@ -132,8 +128,8 @@ fn proposal_submission_action_rule() -> Rules {
132128 . expect ( "Must be a valid json scheme file" ) ;
133129
134130 Rules {
135- id : None ,
136- ver : None ,
131+ id : Some ( IdRule ) ,
132+ ver : Some ( VerRule ) ,
137133 content_type : ContentTypeRule {
138134 exp : ContentType :: Json ,
139135 } ,
0 commit comments