Only print JSON object validation message in debug mode

pull/2056/head
Merwane Hamadi 2023-04-16 14:16:48 -07:00 committed by Pi
parent b50259c25d
commit b5e0127b16
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ def validate_json(json_object: object, schema_name: object) -> object:
for error in errors:
logger.error(f"Error: {error.message}")
else:
elif CFG.debug_mode:
print("The JSON object is valid.")
return json_object