OpenAPITools / OpenAPITools/openapi-generator

[BUG][C++] cpp-pistache - missing support for object without properties/additionalProperties

Open
#1,827 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Hacktoberfest help wanted Issue: Bug Server: C++
Dominant language
Java
Stars
26.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

Description

When the model or inline type is type object only with no additionalProperties or properties the compilation failed due to reference to Object type.

fatal error: Object.h: No such file or directory
 #include "Object.h"
openapi-generator version

master

OpenAPI declaration file content or url
definitions:
  Result:
    type: object
Related issues/PRs

#1637

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing cpp-pistache generation with the minimal OpenAPI definition in the issue and compare it with related issue #1637. Inspect the cpp-pistache generator or templates responsible for an object with neither properties nor additionalProperties; done means the generated code no longer references the missing Object.h and compiles.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.