mirror of
https://github.com/mgeeky/decode-spam-headers.git
synced 2026-02-22 05:23:31 +01:00
MAESTRO: fix async tests router validation
This commit is contained in:
@@ -12,4 +12,4 @@ router = APIRouter(prefix="/api", tags=["tests"])
|
||||
def list_tests() -> list[TestResponse]:
|
||||
registry = ScannerRegistry()
|
||||
tests = registry.list_tests()
|
||||
return [TestResponse.model_validate(test) for test in tests]
|
||||
return [TestResponse.model_validate(test.model_dump()) for test in tests]
|
||||
|
||||
Reference in New Issue
Block a user