File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
rust/catalyst-signed-doc-spec/src Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 22
33use std:: { collections:: HashMap , fmt:: Display } ;
44
5- use cbork_cddl_parser:: validate_cddl;
5+ // TODO: Fix CDDL validation
6+ //use cbork_cddl_parser::validate_cddl;
67
78#[ derive( serde:: Deserialize ) ]
89pub struct CddlDefinitions ( HashMap < CddlType , CddlDef > ) ;
@@ -68,12 +69,14 @@ impl CddlDefinitions {
6869 }
6970 }
7071
71- let mut spec = imports. values ( ) . fold ( spec, |mut spec, import_spec| {
72+ let spec = imports. values ( ) . fold ( spec, |mut spec, import_spec| {
7273 spec. push_str ( import_spec) ;
7374 spec
7475 } ) ;
7576
76- validate_cddl ( & mut spec, & cbork_cddl_parser:: Extension :: CDDL ) ?;
77+ // This is incomplete and does not properly parse valid CDDL specs yet.
78+ // TODO: improve CDDL validation before re-introduction.
79+ // validate_cddl(&mut spec, &cbork_cddl_parser::Extension::CDDL)?;
7780 Ok ( spec)
7881 }
7982}
You can’t perform that action at this time.
0 commit comments