@@ -141,6 +141,10 @@ def arg_parser(): # type: () -> argparse.ArgumentParser
141
141
exgroup .add_argument ("--non-strict" , action = "store_false" , help = "Lenient validation (ignore unrecognized fields)" ,
142
142
default = True , dest = "strict" )
143
143
144
+ parser .add_argument ("--skip-schemas" , action = "store_true" ,
145
+ help = "Skip loading of schemas" ,
146
+ default = True , dest = "skip_schemas" )
147
+
144
148
exgroup = parser .add_mutually_exclusive_group ()
145
149
exgroup .add_argument ("--verbose" , action = "store_true" , help = "Default logging" )
146
150
exgroup .add_argument ("--quiet" , action = "store_true" , help = "Only print warnings and errors." )
@@ -634,6 +638,7 @@ def main(argsl=None, # type: List[str]
634
638
'enable_dev' : False ,
635
639
'enable_ext' : False ,
636
640
'strict' : True ,
641
+ 'skip_schemas' : False ,
637
642
'rdf_serializer' : None ,
638
643
'basedir' : None ,
639
644
'tool_help' : False ,
@@ -701,7 +706,8 @@ def main(argsl=None, # type: List[str]
701
706
= validate_document (document_loader , workflowobj , uri ,
702
707
enable_dev = args .enable_dev , strict = args .strict ,
703
708
preprocess_only = args .print_pre or args .pack ,
704
- fetcher_constructor = fetcher_constructor )
709
+ fetcher_constructor = fetcher_constructor ,
710
+ skip_schemas = args .skip_schemas )
705
711
706
712
if args .pack :
707
713
stdout .write (print_pack (document_loader , processobj , uri , metadata ))
0 commit comments