-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Closed
Labels
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)?
- 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
When generating a scala-sttp client with data-schema defined as the example below(format: byte, type: string), the code is generated with the reference to ByteArray which causes compile to fail.
openapi-generator version
The both version 5.2.0 and the latest master branch
OpenAPI declaration file content
components:
schemas:
TraceWithScreenshotData:
properties:
screenshot:
description: |-
The screenshot image encoded using base64.
A screenshot should start with a data uri scheme 'data:image/png;base64'.
format: byte
type: string
type: objectGeneration Details
Command line used for generation
openapi-generator-cli generate \
-g scala-sttp \
-i name_of_file.yaml \
-p mainPackage=myPackage \
-o myApiGenerated model class TraceWithScreenshotData
case class TraceWithScreenshotData(
/* The screenshot image encoded using base64. A screenshot should start with a data uri scheme 'data:image/png;base64'. */
screenshot: Option[ByteArray] = None
)Steps to reproduce
See above
Related issues/PRs
similar issue in scala-akka client: #5580
Suggest a fix
Reactions are currently unavailable