Skip to content

Commit

Permalink
add file name to output
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-dydx-ops committed Nov 25, 2024
1 parent c7a3ad1 commit f649061
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/env_config_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ def __init__(self, reference_path: Path, deployment_path: Path):
"""
self.utils = ValidationUtils()
self.console = Console()
self.reference_path = reference_path
self.deployment_path = deployment_path

# Load JSON data and line numbers
self.reference_config, self.reference_line_numbers = load_json(
Expand Down Expand Up @@ -56,9 +58,18 @@ def validate(self) -> Tuple[bool, List[Tuple[str, str, dict]]]:
- A list of issues identified during validation.
"""
issues = validate_structure(
self.reference_config, self.deployment_config, self.utils, self.reference_line_numbers
self.reference_config,
self.deployment_config,
self.utils,
self.reference_line_numbers,
)
create_visual_diff(
issues,
self.console,
self.utils,
file_1_name=self.reference_path.name,
file_2_name=self.deployment_path.name,
)
create_visual_diff(issues, self.console, self.utils)
return len(issues) == 0, issues


Expand Down

0 comments on commit f649061

Please sign in to comment.