Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #398
Closed
Open
Issue created Jun 25, 2018 by Administrator@rootContributor

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
Related issues/PRs

#362

Assignee
Assign to
Time tracking