Skip to content

Commit

Permalink
Fix python example in api generation template (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladislav-kuznetsov-newhomesmate authored May 15, 2024
1 parent 493803e commit 94780de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generator/templates/ApiTemplate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ url = "<%- operation.fullPath %>"
<% if(operation.requestBody?.content && operation.requestBody?.content['application/json']){ -%>
payload = json.dumps(<%- JSON.stringify(operation.request.example, null, 2) %>)<% }; -%>
<% if(true){%>headers: { <% }; -%>
<% if(true){%>headers = { <% }; -%>
<% if(operation.requestBody?.content && operation.requestBody?.content['application/json']){ %>
'Content-Type': 'application/json',<% }; -%>
<% if(operation.responseList[0].content && operation.responseList[0].content['application/json']){ %>
Expand Down

0 comments on commit 94780de

Please sign in to comment.