OpenAPITools / OpenAPITools/openapi-generator
[BUG][SCALA] error: not found: type ByteArray
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Bug Report Checklist
- Have you provided a full/minimal spec to reproduce the issue?
- Have you validated the input using an OpenAPI validator (example)?
- What's the version of OpenAPI Generator used?
- Have you search for related issues/PRs?
- What's the actual output vs expected output?
- [Optional] Bounty to sponsor the fix (example)
Description
When generating a scala-akka client for Argo Workflows, I get code with three references to ByteArray. Doesn't look like Scala has that type built-in. I'm able to eliminate the build error by changing it to Array[Byte], but I haven't tested to make sure that client actually works.
openapi-generator version
4.3.0-SNAPSHOT
OpenAPI declaration file content or url
Command line used for generation
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -i https://raw.githubusercontent.com/argoproj/argo/20d6e27bdf11389f23b2efe1be4ef737f333221d/api/openapi-spec/swagger.json -g scala-akka -o ~/src/argo-client-scala --artifact-id argo-client-scala --artifact-version 0.1-SNAPSHOT --group-id com.crenshaw_dev
Steps to reproduce
cd ~/src/argo-client-scala
mvn clean install
Related issues/PRs
Suggest a fix
Maybe ByteArray just needs to be replaced with Array[Byte]?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure with the supplied OpenAPI URL and the scala-akka generation command, then run mvn clean install in the generated argo-client-scala project. Trace the scala-akka templates or type mappings that emit ByteArray and compare them with the generated references. Done means the generated client builds without an unknown ByteArray type and uses the correct Scala byte-array representation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- openapi, scala
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100