This repository has been archived by the owner on Jul 10, 2023. It is now read-only.
Feature Request: API Client Generation with openapi-generator #14
Labels
enhancement
New feature or request
Hello,
I was trying to get an API Client for golang generated from the OpenAPI specification file video-analytics-serving.yaml. You can run the tool with Docker:
docker run --rm -v ${PWD}:/local openapitools/openapi-generator-cli \ generate -i https://raw.githubusercontent.com/intel/video-analytics-serving/v0.3.0-alpha/vaserving/rest_api/video-analytics-serving.yaml \ -g go -o /local/out/go
I already run into a problem with the oneOf tag as described here OpenAPITools/openapi-generator#15 (comment).
Anyways, as I want to just run the example with
UriSource
andFileDestination
, I manually updated the generated API client. It worked. I could get the Models at least:But when I try to get the pipelines, it fails to parse the response. And I think the reason behind that is the
Pipeline_parameters
definition in thevide-analytics-serving.yaml
file.The definition is more or less empty:
So, when the response containing the following fields arrive to my generated client:
My API Client crash saying:
So, this is not a bug, but a request to complete the Pipeline_parameters definition so automatic generated API clients works out of the box :) (for Go at least)
Any opinion?
The text was updated successfully, but these errors were encountered: