You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The OpenAPI specification for the weather service is loaded from `weather_openapi.json`.
69
-
70
-
```python
71
-
# Load the OpenAPI specification for the weather service from a local JSON file using jsonref to handle references
72
-
withopen(os.path.join(os.path.dirname(__file__), "weather_openapi.json"), "r") as f:
73
-
openapi_weather = jsonref.loads(f.read())
74
-
```
75
-
76
72
## Countries Tool Setup
77
73
Similarly, the OpenAPI specification for the countries service is loaded from `countries.json`. An anonymous authentication object (`OpenApiAnonymousAuthDetails`) is created, as this specific API doesn't require authentication in this example.
78
74
79
75
```python
76
+
# Load the OpenAPI specification for the countries service from a local JSON file
77
+
withopen(os.path.join(os.path.dirname(__file__), "weather.json"), "r") as f:
78
+
openapi_weather = jsonref.loads(f.read())
79
+
80
80
# Load the OpenAPI specification for the countries service from a local JSON file
81
81
withopen(os.path.join(os.path.dirname(__file__), "countries.json"), "r") as f:
82
82
openapi_countries = jsonref.loads(f.read())
83
83
84
84
# Create Auth object for the OpenApiTool (note: using anonymous auth here; connection or managed identity requires additional setup)
0 commit comments