Skip to content

Commit

Permalink
ISSUE #5: Enable primitive schema mapping
Browse files Browse the repository at this point in the history
Take schemas from mapping use a default schema
  • Loading branch information
lyubick committed Dec 6, 2023
1 parent d4f19c8 commit c7675e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,12 @@ def tuple_split(inp: str, separator: str) -> Tuple[str, str]:

input_schemas = {}

input_mapped_schemas = ''
if input_mapping:
logging.error(input_mapping)
input_mapped_schemas = ','.join(list(map(lambda x: tuple_split(x, ':')[1], input_mapping.split(','))))
input_schemas = get_all_schemas(input_mapped_schemas)

input_schemas['default'] = list(get_all_schemas(args[0]).values())[0]
input_schemas = get_all_schemas(schema_file_path=input_mapped_schemas, default_schema_path=args[0])

input_files = get_testing_filenames(
files_paths_list=args[1],
Expand Down

0 comments on commit c7675e0

Please sign in to comment.