From 4326c4d44f64a6315dbe1e74a9c6f2cf0e8d93a1 Mon Sep 17 00:00:00 2001 From: GotthardG <51994228+GotthardG@users.noreply.github.com> Date: Wed, 18 Dec 2024 08:02:19 +0100 Subject: [PATCH] Refactor OpenAPI fetcher for improved clarity and robustness Reorganized and enhanced the OpenAPI fetch logic for better maintainability and error handling. Key updates include improved environment variable validation, more detailed error messages, streamlined configuration loading, and additional safety checks for file paths and directories. Added proper logging and ensured the process flow is easy to trace. --- config_test.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config_test.json b/config_test.json index dc72d4f..ddefdba 100644 --- a/config_test.json +++ b/config_test.json @@ -1,6 +1,6 @@ { "ssl_cert_path": "ssl/mx-aare-test.psi.ch.pem", - "ssl_key_path": "ss/mx-aare-test.psi.ch.key", + "ssl_key_path": "ssl/mx-aare-test.psi.ch.key", "OPENAPI_URL": "https://mx-aare-test.psi.ch:8000/openapi.json", "SCHEMA_PATH": "./src/openapi.json", "OUTPUT_DIRECTORY": "./openapi",