You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
[ x] - I have checked that my input document is valid OpenAPI 2.0/3.0.x or AsyncAPI 1.x
To Reproduce
convert attached zip -> yml to a Markdown output.
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.
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
The text was updated successfully, but these errors were encountered: