Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #3421
Closed
Open
Issue created Jul 22, 2019 by Martin Delille@MartinDelilleContributor

[qt] Binary format doesn't compile

Description

I tried to describe a binary format file download as describe here: https://swagger.io/docs/specification/describing-responses/

Unfortunately, the generated code doesn't compile.

openapi-generator version

4.0.3

OpenAPI declaration file content or url
openapi: 3.0.1
servers:
  - url: 'https://api.myapp.com/v1'
info:
  description: This is myapp.com API.
  version: 1.0.0
  title: myapp.com
paths:
  /picture/{pictureId}:
    get:
      operationId: findPictureById
      parameters:
        - name: pictureId
          in: path
          schema:
            type: string
          required: true
      responses:
        '200':
          description: A picture file
          content:
            image/png:
              schema:
                type: string
                format: binary
Command line used for generation
openapi-generator generate -i api.yaml -g cpp-qt5-client
Steps to reproduce

Generate the upper spec with the given command and try to compile.

Related issues/PRs

No

Suggest a fix/enhancement

I'll be happy to help to fix this.

Assignee
Assign to
Time tracking