11//! Catalyst Signed Documents validation logic
22
3+ pub ( crate ) mod ver;
34pub ( crate ) mod json_schema;
45pub ( crate ) mod rules;
56pub ( crate ) mod utils;
@@ -21,11 +22,7 @@ use crate::{
2122 doc_types:: {
2223 BRAND_PARAMETERS , CAMPAIGN_PARAMETERS , CATEGORY_PARAMETERS , PROPOSAL , PROPOSAL_COMMENT ,
2324 PROPOSAL_COMMENT_FORM_TEMPLATE , PROPOSAL_FORM_TEMPLATE , PROPOSAL_SUBMISSION_ACTION ,
24- } ,
25- metadata:: DocType ,
26- providers:: { CatalystSignedDocumentProvider , VerifyingKeyProvider } ,
27- signature:: { tbs_data, Signature } ,
28- CatalystSignedDocument , ContentEncoding , ContentType ,
25+ } , metadata:: DocType , providers:: { CatalystSignedDocumentProvider , VerifyingKeyProvider } , signature:: { tbs_data, Signature } , CatalystSignedDocument , ContentEncoding , ContentType
2926} ;
3027
3128/// A table representing a full set or validation rules per document id.
@@ -42,6 +39,8 @@ fn proposal_rule() -> Rules {
4239 CATEGORY_PARAMETERS . clone( ) ,
4340 ] ;
4441 Rules {
42+ id : None ,
43+ ver : None ,
4544 content_type : ContentTypeRule {
4645 exp : ContentType :: Json ,
4746 } ,
@@ -76,6 +75,8 @@ fn proposal_comment_rule() -> Rules {
7675 CATEGORY_PARAMETERS . clone( ) ,
7776 ] ;
7877 Rules {
78+ id : None ,
79+ ver : None ,
7980 content_type : ContentTypeRule {
8081 exp : ContentType :: Json ,
8182 } ,
@@ -127,6 +128,8 @@ fn proposal_submission_action_rule() -> Rules {
127128 . expect ( "Must be a valid json scheme file" ) ;
128129
129130 Rules {
131+ id : None ,
132+ ver : None ,
130133 content_type : ContentTypeRule {
131134 exp : ContentType :: Json ,
132135 } ,
0 commit comments