From 87a6c2d716279ac036197e1042d9c0048f11b5e4 Mon Sep 17 00:00:00 2001 From: Saba Date: Sun, 28 Nov 2021 14:34:32 -0500 Subject: [PATCH] Use parse_obj instead of parse_raw as incoming data is in dict --- src/utils/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/cli.py b/src/utils/cli.py index dd105678..504a6d99 100644 --- a/src/utils/cli.py +++ b/src/utils/cli.py @@ -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