Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

tools: Add success message to check-schemas.

Gaurav Pandey86c883ceb04b
diff --git a/tools/check-schemas b/tools/check-schemas
index 5301acc3905..3e69cee2e70 100755
--- a/tools/check-schemas
+++ b/tools/check-schemas
@@ -107,7 +107,7 @@ def check_event(name: str, event: Dict[str, Any]) -> None:
print(f"\n{EVENTS_JS} has bad data for {name}:\n\n")
raise
else:
- print(f"NEED SCHEMA: {name}")
+ print(f"WARNING - NEED SCHEMA: {name}")
def read_fixtures() -> Dict[str, Any]:
@@ -191,7 +191,7 @@ def validate_openapi_against_event_schema() -> None:
name += "_event"
if not hasattr(event_schema, name):
- print("NEED SCHEMA to match OpenAPI", name)
+ print("WARNING - NEED SCHEMA to match OpenAPI", name)
continue
openapi_type = from_openapi(sub_node)
@@ -225,6 +225,7 @@ def run() -> None:
for name, event in fixtures.items():
check_event(name, event)
validate_openapi_against_event_schema()
+ print("Successful check. All tests passed.")
if __name__ == "__main__":