Use parse_obj instead of parse_raw as incoming data is in dict

This commit is contained in:
Saba 2021-11-28 14:34:32 -05:00
parent faf1df47fe
commit 87a6c2d716

View file

@ -37,7 +37,7 @@ def cli(args=None):
with open(get_absolute_path(args.config_file), 'r', encoding='utf-8') as config_file:
config_from_file = yaml.safe_load(config_file)
args.config = merge_dicts(priority_dict=config_from_file, default_dict=args.config)
args.config = FullConfig.parse_raw(json.dumps(args.config))
args.config = FullConfig.parse_obj(args.config)
if args.org_files:
args.config['content-type']['org']['input-files'] = args.org_files