#43: Fixed argument bug with paths
This commit is contained in:
@@ -909,7 +909,7 @@ func handleGet(swagger *openapi3.Swagger, api WorkflowApp, extraParameters []Wor
|
|||||||
}
|
}
|
||||||
|
|
||||||
if param.Value.In == "path" {
|
if param.Value.In == "path" {
|
||||||
//log.Printf("PATH!: %s", param.Value.Name)
|
log.Printf("PATH!: %s", param.Value.Name)
|
||||||
parameters = append(parameters, param.Value.Name)
|
parameters = append(parameters, param.Value.Name)
|
||||||
//baseUrl = fmt.Sprintf("%s%s", baseUrl)
|
//baseUrl = fmt.Sprintf("%s%s", baseUrl)
|
||||||
} else if param.Value.In == "query" {
|
} else if param.Value.In == "query" {
|
||||||
|
|||||||
@@ -374,7 +374,6 @@ const AppCreator = (props) => {
|
|||||||
|
|
||||||
// FIXME: Have multiple authentication options?
|
// FIXME: Have multiple authentication options?
|
||||||
if (securitySchemes !== undefined) {
|
if (securitySchemes !== undefined) {
|
||||||
console.log("Am I in here?")
|
|
||||||
for (const [key, value] of Object.entries(securitySchemes)) {
|
for (const [key, value] of Object.entries(securitySchemes)) {
|
||||||
if (value.scheme === "bearer") {
|
if (value.scheme === "bearer") {
|
||||||
setAuthenticationOption("Bearer auth")
|
setAuthenticationOption("Bearer auth")
|
||||||
@@ -525,6 +524,8 @@ const AppCreator = (props) => {
|
|||||||
"parameters": []
|
"parameters": []
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log("ACTION: ", item)
|
||||||
|
|
||||||
if (item.queries.length > 0) {
|
if (item.queries.length > 0) {
|
||||||
for (var querykey in item.queries) {
|
for (var querykey in item.queries) {
|
||||||
const queryitem = item.queries[querykey]
|
const queryitem = item.queries[querykey]
|
||||||
@@ -943,9 +944,7 @@ const AppCreator = (props) => {
|
|||||||
const setActionField = (field, value) => {
|
const setActionField = (field, value) => {
|
||||||
currentAction[field] = value
|
currentAction[field] = value
|
||||||
setCurrentAction(currentAction)
|
setCurrentAction(currentAction)
|
||||||
//if (updater !== value) {
|
console.log("ACTION: ", currentAction)
|
||||||
// setUpdater(value)
|
|
||||||
//}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const bodyInfo = actionBodyRequest.includes(currentActionMethod) ?
|
const bodyInfo = actionBodyRequest.includes(currentActionMethod) ?
|
||||||
@@ -1088,7 +1087,7 @@ const AppCreator = (props) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (currentAction.paths !== paths) {
|
if (currentAction.paths !== paths && urlPath.length > 0) {
|
||||||
setActionField("paths", paths)
|
setActionField("paths", paths)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1159,10 +1158,8 @@ const AppCreator = (props) => {
|
|||||||
}}
|
}}
|
||||||
onBlur={e => {
|
onBlur={e => {
|
||||||
// Fix basic issues in frontend. Python functions run a-zA-Z0-9_
|
// Fix basic issues in frontend. Python functions run a-zA-Z0-9_
|
||||||
console.log(e.target.value)
|
|
||||||
const regex = /[A-Za-z0-9 _]/g;
|
const regex = /[A-Za-z0-9 _]/g;
|
||||||
const found = e.target.value.match(regex);
|
const found = e.target.value.match(regex);
|
||||||
console.log("FOUND: ", found)
|
|
||||||
if (found !== null) {
|
if (found !== null) {
|
||||||
setActionField("name", found.join(""))
|
setActionField("name", found.join(""))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user