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:41:07 +01:00
parent 7e72871ad7
commit 6c74460217

View File

@ -10,6 +10,7 @@
"preview": "vite preview",
"start-dev": "vite --mode dev",
"start-test": "vite --mode test",
"start-prod": "vite --mode prod",
"watch:openapi": "node fetch-openapi.js"
},
"dependencies": {