Fix OpenAPI schema
acknowledged
M
Mint Eagle
I ran openapi-python-client to generate a Python package from the OpenAPI spec. I got the following warnings, which suggests that the definition file is not fully valid:
WARNING parsing POST /compute-envs within default. Endpoint will not be generated.
- Could not find reference in parsed models or enums
WARNING parsing GET /data-links within default.
- Cannot parse response for status code 200 (Could not find reference in parsed models or enums), response will be omitted from generated client
- Reference(ref='#/components/schemas/DataLinksListResponse')
WARNING parsing GET /data-links within default.
- Cannot parse response for status code 202 (Could not find reference in parsed models or enums), response will be omitted from generated client
- Reference(ref='#/components/schemas/DataLinksListResponse')
WARNING parsing POST /data-links within default.
- Cannot parse response for status code 200 (Could not find reference in parsed models or enums), response will be omitted from generated client
- Reference(ref='#/components/schemas/DataLinkDto')
WARNING parsing GET /data-links/{dataLinkId} within default.
- Cannot parse response for status code 200 (Could not find reference in parsed models or enums), response will be omitted from generated client
- Reference(ref='#/components/schemas/DataLinkResponse')
WARNING parsing PUT /data-links/{dataLinkId} within default.
- Cannot parse response for status code 200 (Could not find reference in parsed models or enums), response will be omitted from generated client
- Reference(ref='#/components/schemas/DataLinkDto')
WARNING parsing GET /workflow/{workflowId}/launch within default.
- Cannot parse response for status code 200 (Could not find reference in parsed models or enums), response will be omitted from generated client
- Reference(ref='#/components/schemas/DescribeWorkflowLaunchResponse')
Unable to process schema /components/schemas/ComputeEnv_ComputeConfig_:
- Cannot take allOf a non-object
- Failure to process schema has resulted in the removal of:
/components/schemas/ComputeEnv_ComputeConfig_
/components/schemas/CreateComputeEnvRequest
/components/schemas/WorkflowLaunchResponse
/components/schemas/DescribeWorkflowLaunchResponse
Unable to process schema /components/schemas/DataLinkDto:
- Cannot take allOf a non-object
- Failure to process schema has resulted in the removal of:
/components/schemas/DataLinkDto
/components/schemas/DataLinkResponse
/components/schemas/DataLinksListResponse
Rob Newman
Is there a reason why you are not using
seqerakit
link to Git repo which is our Python SDK for the Platform? If there's a specific reason why you aren't, this is more a discussion topic in our community forum.M
Mint Eagle
Yes, it lacked some features I needed. I will post a separate issue about that, but this is still a bug in the OpenAPI schema, which will matter if trying to create a client in any other language.
Rob Newman
Mint Eagle: Thanks for the update. If some features in
seqerakit
are missing, can you outline them here so we can capture them? I'll also create a bug report for the OpenAPI spec issues for our internal team to review.Rob Newman
acknowledged