Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[BUG] Qt5 client PetStore example doesn't compile when using openapi 3 specification #3457

Closed
4 of 6 tasks
MartinDelille opened this issue Jul 25, 2019 · 3 comments
Closed
4 of 6 tasks

Comments

@MartinDelille
Copy link
Contributor

MartinDelille commented Jul 25, 2019

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

As explained here, the code generate from the openapi 3 spec of the PetStore example doesn't compile.

openapi-generator version

4.0.3

OpenAPI declaration file content or url

https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml

Command line used for generation
openapi-generator generate -i petstore.yaml -g cpp-qt5-client
Steps to reproduce
  1. Modify the api specification example in bin/cpp-qt5-petstore.sh to modules/openapi-generator/src/test/resources/3_0/petstore.yaml
  2. Try to compile samples/client/petstore/cpp-qt5/PetStore/PetStore.pro
Related issues/PRs
Suggest a fix

I find it strange that OAIInline_object* file are generated since they are not used anywhere...

@auto-labeler
Copy link

auto-labeler bot commented Jul 25, 2019

👍 Thanks for opening this issue!
🏷 I have applied any labels matching special text in your issue.

The team will review the labels and make any necessary changes.

@etherealjoy
Copy link
Contributor

Issue due to file upload not being handled.

@etherealjoy
Copy link
Contributor

solved in #3853

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants