swagger-api / swagger-api/swagger-codegen-generators
[BUG][ALL] Crash on recursive structures because of example generations
Open
@HugoMario is already working on this.
Since Aug 1, 2019.
- Dominant language
- Mustache
- Stars
- 299
- Forks
- 439
- PR merge metrics
- No merged PRs in 30d
Description
This is basically the same bug as https://github.com/OpenAPITools/openapi-generator/issues/2966
Example generation should never crash the code generation process in general.
And a graceful solution should be found so examples can be provided for recursive structures.
It would be at least nice to have a way to disable example generation. I've tried using -DdisableExample, -DdisableExamples, -DdisableExample:true and -DdisableExamples:true, none worked.
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.
Assessment
This issue has not been assessed yet.