Fixed an app creation def issue
This commit is contained in:
@@ -398,6 +398,7 @@ func makePythoncode(swagger *openapi3.Swagger, name, url, method string, paramet
|
|||||||
verifyAddin,
|
verifyAddin,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
log.Printf("%s", data)
|
||||||
return functionname, data
|
return functionname, data
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -716,6 +716,11 @@ const AppCreator = (props) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (authenticationOption === "API key") {
|
if (authenticationOption === "API key") {
|
||||||
|
if (parameterName.length === 0) {
|
||||||
|
alert.error("A field name for the APIkey must be defined")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
data.components.securitySchemes["ApiKeyAuth"] = {
|
data.components.securitySchemes["ApiKeyAuth"] = {
|
||||||
"type": "apiKey",
|
"type": "apiKey",
|
||||||
"in": parameterLocation.toLowerCase(),
|
"in": parameterLocation.toLowerCase(),
|
||||||
@@ -727,6 +732,7 @@ const AppCreator = (props) => {
|
|||||||
"scheme": "bearer",
|
"scheme": "bearer",
|
||||||
"bearerFormat": "UUID",
|
"bearerFormat": "UUID",
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (authenticationOption === "Basic auth") {
|
} else if (authenticationOption === "Basic auth") {
|
||||||
data.components.securitySchemes["BasicAuth"] = {
|
data.components.securitySchemes["BasicAuth"] = {
|
||||||
"type": "http",
|
"type": "http",
|
||||||
|
|||||||
Reference in New Issue
Block a user