Skip to content

Commit

Permalink
add indentation
Browse files Browse the repository at this point in the history
Signed-off-by: M. Fatih Cırıt <[email protected]>
  • Loading branch information
M. Fatih Cırıt committed Feb 21, 2024
1 parent 3c39cb0 commit 2aec9b2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions json-schema-check/validate_json_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ def main():
base_name = os.path.basename(schema_file).replace('.schema.json', '')
config_dir = os.path.dirname(schema_file).replace('schema', 'config')

str_indentation = ' ' * 4
config_files = glob.glob(f'{config_dir}/{base_name}*.param.yaml')
if not config_files:
print(colorama.Fore.YELLOW + f'No configuration files found for schema {schema_file}.')
print(colorama.Fore.YELLOW + f'{str_indentation}No configuration files found for schema {schema_file}.')
continue

for config_file in config_files:
Expand All @@ -33,7 +34,7 @@ def main():
print(colorama.Fore.RED + '❌ Failed')
for line in result.stdout.decode('utf-8').split('\n'):
if line:
print(colorama.Fore.RED + line)
print(colorama.Fore.RED + str_indentation + line)
validation_failed = True
else:
print(colorama.Fore.GREEN + '✅ Passed')
Expand Down

0 comments on commit 2aec9b2

Please sign in to comment.