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.
This commit is contained in:
GotthardG 2024-12-17 15:58:52 +01:00
parent c38e47044d
commit 5a0408062b

View File

@ -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:1492/openapi.json",
"SCHEMA_PATH": "./src/openapi.json",
"OUTPUT_DIRECTORY": "./openapi",