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:
@ -42,6 +42,9 @@ app = FastAPI(
|
||||
title=project_name,
|
||||
description="Backend for next-gen sample management system",
|
||||
version=project_version,
|
||||
servers=[
|
||||
{"url": "https://mx-aare-test.psi.ch:1492", "description": "Default server"}
|
||||
],
|
||||
)
|
||||
|
||||
# Determine environment and configuration file path
|
||||
|
Reference in New Issue
Block a user