Started fixing requestbody in openapi3

This commit is contained in:
frikky
2020-05-30 14:06:13 +02:00
parent 34db3d9588
commit 611dcae8b3
3 changed files with 23 additions and 12 deletions
+4 -2
View File
@@ -1127,11 +1127,13 @@ func handlePost(swagger *openapi3.Swagger, api WorkflowApp, extraParameters []Wo
Parameters: extraParameters,
}
if path.Post.RequestBody != nil {
log.Printf("FUNCTION: %#v", path.Post.RequestBody)
}
action.Returns.Schema.Type = "string"
baseUrl := fmt.Sprintf("%s%s", api.Link, actualPath)
//log.Println(path.Parameters)
// Parameters: []WorkflowAppActionParameter{},
// FIXME - add data for POST stuff
firstQuery = true
-1
View File
@@ -2744,7 +2744,6 @@ func getWorkflowAppConfig(resp http.ResponseWriter, request *http.Request) {
resp.Write([]byte(`{"success": false}`))
return
}
log.Printf("API: %#v", parsedApi)
//log.Printf("Parsed API: %#v", parsedApi)
if len(parsedApi.ID) > 0 {