Open rashmi6225 opened 3 years ago
@spacether could you please look into this issue.
What is the spec that shows this issue? What template or output file includes the problem that you show? It looks like it may be the model tests. Please provide a sample spec. Without one I can't investigate this.
@spacether openAPI spec is 4.3.1, yes it is with model test. please find the sample json attached. swagger.docx attcachment of json was not allowed so i just renamed file extension. let me know any you need anything
Can you try this again using the latest master branch? Improvements were made to setting example values in the test files.
@spacether i tried with the latest master branch openapi-generator-cli-5.0.0.jar still the same issue. Could you please check again.
Hi there. So I have a lot of work at the moment and don't have time to investigate this right now. If you want to submit a PR to fix this issue, please take a look at the toExampleValueRecursive method. That method sets default example values for all models, model properties, and endpoint parameters.
It seems that openapi cli gererates invalid python test code
Steps to reproduce
commands
Results