OpenAPITools / OpenAPITools/openapi-generator
[C++][Tizen] ByteArray type is generated but unknown in C++
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Description
The generator produces a #include "ByteArray.h" and ByteArray type usage whereas it does not exist in C++
openapi-generator version
3.3.4
OpenAPI declaration file content or url
swagger: '2.0'
info:
description: Check Byte array
version: 1.0.0
title: Check Byte array
host: localhost:8080
basePath: /
tags:
- name: check
schemes:
- http
- https
paths:
/checkByteArray:
get:
tags:
- check
summary: Download a document
description: ''
operationId: downloadFile
produces:
- application/octet-stream
responses:
'200':
description: successful operation
schema:
type: string
format: byte
Command line used for generation
java -jar openapi-generator-cli.jar generate -i api.yml -g cpp-tizen -o .
Steps to reproduce
Compile de project with g++ -c
Related issues/PRs
https://github.com/OpenAPITools/openapi-generator/issues/407
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 issue with the supplied OpenAPI declaration and the command using the cpp-tizen generator. Start by tracing the cpp-tizen generator's type mapping and generated include/template entry points for a string with format byte. Done means the generated project no longer references an unavailable ByteArray type or header and compiles with g++.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100