Skip to content

Commit

Permalink
при валидации конфига убрал логику, при которой по умолчанию поле дол…
Browse files Browse the repository at this point in the history
…жно присутствовать
  • Loading branch information
Андрей Козлюк committed Mar 28, 2022
1 parent 23ea3ae commit 2cc5de5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion para_tri_dataset/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def create_config(base_path: Path, config_name: str, depth: int = 0, type_: str
if "__val_schema__" not in raw_config_data:
raise ValueError(f'config file {config_filepath} does not contain validation schema "__val_schema__"')

validator = Validator(raw_config_data["__val_schema__"], reqire_all=True)
validator = Validator(raw_config_data["__val_schema__"])
if not validator(config_data):
raise ValueError(validator.errors)

Expand Down

0 comments on commit 2cc5de5

Please sign in to comment.