diff --git a/tests/openapi/test_extractor.py b/tests/openapi/test_extractor.py index 56446670..8ad6d13f 100644 --- a/tests/openapi/test_extractor.py +++ b/tests/openapi/test_extractor.py @@ -3,7 +3,7 @@ import pytest import requests -from pydantic import HttpUrl +from pydantic import FilePath, HttpUrl from metaphor.common.base_config import OutputConfig from metaphor.common.event_util import EventUtil @@ -15,7 +15,7 @@ def get_dummy_config(base_url: str, path: str = "", url: str = ""): return OpenAPIRunConfig( base_url=HttpUrl(base_url), - openapi_json_path=path or None, + openapi_json_path=FilePath(path) if path else None, openapi_json_url=HttpUrl(url) if url else None, output=OutputConfig(), )