swagger-api / swagger-api/swagger-codegen
[QT5][CPP] does not handle `additionalProperties`
Open
Nobody has claimed this yet.
Client: C++
help wanted
Issue: Bug
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Description
The qt5cpp generation does not handle additionalProperties, see: generation result
Swagger-codegen version
2.2.3-SNAPSHOT (master) on 06/18/2017
Swagger declaration file content or url
Error:
type: object
required:
- _type
- key
- message
additionalProperties:
type: object
properties:
_type:
type: string
default: Error
readOnly: true
key:
type: string
message:
type: string
Command line used for generation
docker run -it -v %curpath%:/swagger-api/ swaggerapi/swagger-codegen-cli:latest generate -i /swagger-api/swagger.yaml -l qt5cpp -o /swagger-api/
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with the provided Error schema and the qt5cpp generation command, then inspect the generated result linked in the report. Trace how qt5cpp handles object schemas and additionalProperties; done means the generated C++ output correctly represents the additional object properties without regressing the required fields.
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