swagger-api / swagger-api/swagger-codegen

[Kotlin] File upload not being handled

Open
#8,829 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Description

The Kotlin library does not support generating file upload methods.

Swagger-codegen version

master

Command line used for generation

./kotlin_build_API.sh

Steps to reproduce

Try to generate an API call that uploads a java.io.file

Suggest a fix/enhancement

https://github.com/swagger-api/swagger-codegen/pull/8827

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Kotlin generation invoked by ./kotlin_build_API.sh and inspect the referenced pull request 8827 for the proposed handling of java.io.File uploads. Generate an API call with a file upload and verify that the resulting Kotlin client supports it as described.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, kotlin, openapi
Domain
api, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.