Open Nurmatron123 opened 2 years ago
You can check the templates directory and see that the default templates don't include the body. The workaround is to provide your own custom templates to override them, as described here. You can look at code_javascript.dot for an example of what needs to be done in the other ones to add body examples.
Alternatively you can also provide specific code samples for each request that has a body using x-code-samples.
Is there any specific reason why the default templates don't include the body? Or just that nobody's implemented it yet.
Issue : Missing body parameter code for API languages other than JavaScript in the output file.
For this issue I tried adding several different parameters to the widdershins conversion to get the body parameter to display in other API languages, but was not able to affect any change in the imported API code.
To Reproduce convert attached zip -> yml to a Markdown output.
Expected behavior body parameter to be present
Screenshots
command that we use to invoke widderShin :
$cmd = 'widdershins %s %s --maxDepth %s --search false --expandBody --omitBody --summary -o %s';
openapi 4.yml.zip