Sprint 0 / #19: OpenAPI 3.1 контракт API v1 + TS-клиент и контрактные тесты #57

Merged
embeddevio merged 16 commits from feat/19-openapi into main 2026-10-28 21:21:14 +03:00
Showing only changes of commit 3387eb0f60 - Show all commits
+1 -1
View File
@@ -318,4 +318,4 @@ def test_response_schema_lookup_fails_for_unknown_response(spec: dict[str, Any],
response = client.get("/api/v1/health") response = client.get("/api/v1/health")
with pytest.raises(ContractViolationError): with pytest.raises(ContractViolationError):
validate_response(spec, "/api/v1/health", "get", 418, response.json()) validate_response(spec, "/api/v1/health", "get", 418, response.json())
assert response_schema(spec, "/api/v1/health", "get", 418) is None assert response_schema(spec, "/api/v1/health", "get", 418) is None