5769c1cd22
- Auto-Registration-Bug behoben (register_project/get_project_id/resolve_project Trennung) - 25 Tests gruen (Pytest) - block_compactor-Tool refactored (Option B: Soft-Check statt Hard-Block) - 4 Restbaustellen gefixt - DB-Schema: plugin_settings-Tabelle hinzugefuegt - 3 Schattenprojekte aus DB geloescht - Plan v3 + Refactor-Plan + Worklog dokumentiert
11 lines
457 B
Python
11 lines
457 B
Python
"""API: Validate plugin configuration."""
|
|
from helpers.api import ApiHandler, Request, Response
|
|
import os
|
|
from usr.plugins.a0_software_orchestrator.helpers.validators import validate_config
|
|
|
|
class ConfigValidate(ApiHandler):
|
|
async def process(self, input: dict, request: Request) -> dict | Response:
|
|
config_path = "/a0/usr/plugins/a0_software_orchestrator/default_config.yaml"
|
|
result = validate_config(config_path)
|
|
return result
|