Openapi-python-generator

I tried running the openapi-python-generator code in the Lesson 3 notebook locally, but kept getting the message “File openapi.json is not a valid OpenAPI 3.0 specification” with a list of 8 validation errors when using the openapi.json file generated from the https://raw.githubusercontent.com/open-meteo/open-meteo/main/openapi.yml file. I checked the version numbers, and the notebook is using openapi-python-generator version 0.5.0, whereas the version I got with pip install openapi-python-generator was 1.1.1. I downgraded to version 0.5.0 with pip install openapi-python-generator==0.5.0 and it started working.

This seems like problematic behavior, since the open-meteo openapi file didn’t change and claims to be an OpenAPI 3.0.0 specification.

I also tried reading directly from the open-meteo yaml file with !openapi-python-generator https://raw.githubusercontent.com/open-meteo/open-meteo/main/openapi.yml ./api_specification_main/ but got the same “is not a valid OpenAPI 3.0 specification” error but this time 180 validation errors.

Can anyone explain to me how I should be using the openapi-python-generator tool correctly?

Thanks,
Aaron