Skip to content

[BUG] Generated cpp-qt-client contains errors #15277

Open
@dmitry-erin

Description

@dmitry-erin

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator (example)?
  • Have you tested with the latest master to confirm the issue still exists?
  • Have you searched for related issues/PRs?
  • What's the actual output vs expected output?
  • [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description

Client's code generated with docker
docker run --rm -v $PWD:/local openapitools/openapi-generator-cli:latest generate -i /local/vmd-api/openapi.yaml -g cpp-qt-client -o /local/openapi-client-code
has errors:
error: ‘const class QJsonValue’ has no member named ‘isSet’
error: ‘const class QJsonValue’ has no member named ‘asJsonObject’
According to qt spec there is no such methods as isSet() and asJsonObject() which present in the generated client code.

openapi-generator version

I tried 5.4.0, 6.5.0 and the latest as proposed here.

https://github.com/tiiuae/vmd/blob/main/vmd-api/openapi.yaml

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions