Bug Report Checklist
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: object
Generation Details
Command line used for generation
openapi-generator-cli generate \
-g scala-sttp \
-i name_of_file.yaml \
-p mainPackage=myPackage \
-o myApi
Generated 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
Bug Report Checklist
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
Generation Details
Command line used for generation
Generated model class
TraceWithScreenshotDataSteps to reproduce
See above
Related issues/PRs
similar issue in scala-akka client: #5580
Suggest a fix