Closed tdeboer-ilmn closed 2 years ago
I found a workaround...
Adding "validate_swagger_spec":False to the config results in a functional client
from bravado.client import SwaggerClient
cbioportal = SwaggerClient.from_url(
'https://www.cbioportal.org/api/api-docs',
config={
"validate_requests":False,
"validate_responses":False,
"validate_swagger_spec":False
})
Hi Thon, @tdeboer-ilmn
We don't make changes to the API from cBioPortal. If you're encountering issues with the API, it's best to report them in this repo. https://github.com/cBioPortal/cbioportal
Best regards, Marcel
I'm trying to create a Python client for the cBioPortal API as described on the API documentation website, but run into validation errors.
I tried some other methods (openapi-python-client generate --url https://www.cbioportal.org/api/api-docs) with the same results, so it seems there may be some issues with the OpenAPI 2.0 defintion file?