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
  • #2516
Closed
Open
Issue created Mar 26, 2019 by Administrator@rootContributor

[BUG] Generating Java Client produces NULLUNIQUENAME.java classes

Created by: ncroma

Description

By generating a Java Client using the yaml file posted below, I get a NULLUNIQUENAME.java as the model class for the LoginApi.java method's request-body parameter - login(List<NULLUNIQUENAME> NULLUNIQUENAME) - instead of a InlineObject.class.

openapi-generator version

I'm using the docker command posted bellow, I would assume it is using the last generator version.

OpenAPI declaration file content or url
openapi: 3.0.0
info:
  version: 1.0.0
  title: My Api
tags:
  - name: login
paths:
  /api/login:
    post:
      operationId: login
      summary: Logs in
      tags:
        - login
      requestBody:
        content:
          application/json:
            schema:
              type: array
              items:
                type: object
                properties:
                  prop:
                    type: string
servers:
  - url: http://localhost:3000/
Command line used for generation

I'm using this docker command: docker run --rm -v %cd%/api:/output -v %cd%:/local openapitools/openapi-generator-cli generate -i /local/oas-doc.yaml -g java -o /output

Assignee
Assign to
Time tracking