Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Common/Example.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export class Example
{
var bodyObject: any = props[pp];

if (typeof bodyObject == 'object')
if (typeof bodyObject == 'object' && !(bodyObject instanceof Array) && !(bodyObject instanceof Date))
{
bodyName = pp;
break;
Expand Down
2 changes: 1 addition & 1 deletion src/IntegrationTest/TemplatePythonIntegrationTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export function GeneratePythonIntegrationTest(model: Example[],
if (example == null)
continue;

let hasBody: boolean = (example.Method == "put" || example.Method == "post" || example.Method == "patch");
let hasBody: boolean = example.ExampleHasBody();

output.push("");
output.push(" # " + example.Id + "[" + example.Method + "]");
Expand Down