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
  • #8424
Closed
Open
Issue created Jan 13, 2021 by Administrator@rootContributor5 of 6 checklist items completed5/6 checklist items

[BUG] kotlin-spring generator doesn't generate comments on api methods

Created by: rainmanhhh

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator (example)?
  • Have you tested with the latest master to confirm the issue still exists?
  • Have you searched for related issues/PRs?
  • What's the actual output vs expected output?
  • [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description

kotlin-spring generator doesn't generate comments on api methods(but java spring generator does)

openapi-generator version

5.0.0

OpenAPI declaration file content or url
openapi: 3.0.3
info:
  title: TRTC
  description: TRTC
  version: 1.0.0
  contact:
    name: sfy
servers:
  - url: 'http://localhost:8080'
paths:
  '/userSignature/{userId}':
    get:
      summary: generate signature for user
      tags:
        - TRTC
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: string
      operationId: get-userSignature
      description: generate signature for user with sha256
      parameters:
        - schema:
            type: string
          in: query
          name: test
          description: Test param
    parameters:
      - schema:
          type: string
        name: userId
        in: path
        description: id of user
        required: true
tags:
  - name: TRTC
Generation Details

config.yaml:

apiPackage: trtc.apis
artifactId: trtc-server-api
basePackage: trtc
bigDecimalAsString: true
booleanGetterPrefix: true
configPackage: trtc.config
dateLibrary: java8
ensureUniqueParams: false
groupId: trtc
hideGenerationTimestamp: true
interfaceOnly: false
modelPackage: trtc.models
serviceInterface: true
title: trtc-server-api
unhandledException: true
useTags: true
Suggest a fix
Assignee
Assign to
Time tracking