Incomplete type when response body is a ref to a map
Created by: etherealjoy
Description
When the response is a map incomplete type is created for the response body
[main] ERROR o.o.codegen.DefaultCodegen - No Type defined for Additional Property class Schema
go
func (a *DefaultApiService) ApiTestConfigurationGet(ctx context.Context) (ModelMap,
*http.Response, error)
cpp-qt5
void apiTestConfigurationGetSignal(QMap* summary);
openapi-generator version
master
3.1.x
OpenAPI declaration file content or url
---
# This is a sample Swagger spec
swagger: "2.0"
info:
description: Application Description
version: 1.0.0
title: Application
host: 0.0.0.0:8080
basePath: /api/v1.0
schemes:
- http
paths:
/default/ApiTestSetup:
get:
operationId: apiTestConfigurationGet
produces:
- application/json
consumes:
- application/json
parameters :
- name : "body"
in : "body"
required: true
schema:
$ref: "#/definitions/TestEndPointConfigResponse"
responses:
200:
description: "Successful response"
schema:
$ref: "#/definitions/TestEndPointConfigResponse"
400:
description: "The request was not successfully executed."
definitions:
TestEndPointConfig:
type: "object"
properties:
Config:
type: "object"
additionalProperties:
type: "string"
TestEndPointConfigResponse:
type: object
additionalProperties:
$ref: "#/definitions/TestEndPointConfig"
Command line used for generation
java -jar <pathToJar> generate -i ./swagger.yaml -o ./gengocl -g go
java -jar <pathToJar> generate -i ./swagger.yaml -o ./gencpp -g cpp-qt5