OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
20.73k stars 6.32k forks source link

[BUG] XML support for cpp-qt-qhttpengine-server generator #14953

Open abey-yoseph opened 1 year ago

abey-yoseph commented 1 year ago

Bug Report Checklist

Description

I'm currently using this tool to generate QHTTP server stubs and am having trouble getting it to generate xml code for models I have defined in my yaml file.

openapi-generator version

Pulled the latest docker image from docker hub

OpenAPI declaration file content or url

Attached the yaml code to this issue.

Generation Details

To generate the code, I run the following: docker run --rm -v "${PWD}:/local" openapitools/openapi-generator-cli generate -i /local/ped.yaml -g cpp-qt-qhttpengine-server -o /local --additional-properties=withXml=true

Steps to reproduce
  1. Generate the code
  2. In the generated model files, you will only see "asJson" methods created
Related issues/PRs
Suggest a fix
abey-yoseph commented 1 year ago

ped.yml.txt