Fix python example in api generation template (#189)

This commit is contained in:
Vladislav Kuznetsov
2024-05-15 22:31:08 +03:00
committed by GitHub
parent 493803e20c
commit 94780de0f2

View File

@@ -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']){ %>