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
  • #1013
Closed
Open
Issue created Sep 11, 2018 by Administrator@rootContributor

[Java][retrofit2] Add the part name in the annotation for MultipartBody.Part.

Created by: cheparinV

Description

For MultipartBody.Part the part name is generated in the annotation.In Retrofit2 it is forbidden:

If the type is MultipartBody.Part the contents will be used directly. Omit the name from the annotation (i.e., @Part MultipartBody.Part part). javadoc

openapi-generator version

current maser (2d99836)

OpenAPI declaration file content or url
{
  "in": "formData",
  "type": "file",
  "name": "file
}

Expected: @retrofit2.http.Part MultipartBody.Part file Result: @retrofit2.http.Part("file") MultipartBody.Part file

Command line used for generation
Steps to reproduce
Related issues/PRs
Suggest a fix/enhancement

https://github.com/cheparinV/openapi-generator/tree/part-parameter

Assignee
Assign to
Time tracking