Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc85bc96

Browse files
author
FalkWolsky
committed
Fixing bearerAuth Scheme in Node Service
1 parent5f7f181 commitc85bc96

File tree

11 files changed

+9752
-507
lines changed

11 files changed

+9752
-507
lines changed

‎server/node-service/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
"prom-client":"^14.2.0",
7272
"proxy-agent":"^5.0.0",
7373
"stylis":"^4.3.0",
74-
"swagger-client":"^3.31.0",
74+
"swagger-client":"^3.32.2",
7575
"typescript":"^4.9.3",
7676
"yaml":"^2.6.0"
7777
},

‎server/node-service/src/plugins/lowcoder/index.ts‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@ import { ConfigToType, DataSourcePlugin } from "lowcoder-sdk/dataSource";
66
import{runOpenApi}from"../openApi";
77
import{parseOpenApi,ParseOpenApiOptions}from"../openApi/parse";
88

9-
importspecfrom'./lowcoder.spec.json';
9+
importspec10from'./lowcoder.spec-v1.0.json';
10+
importspec11from'./lowcoder.spec-v1.1.json';
11+
1012
constspecs={
11-
"v1.0":spec,
13+
"v1.0":spec10,
14+
"v1.1":spec11,
1215
}
1316

1417
constdataSourceConfig={
@@ -22,11 +25,6 @@ const dataSourceConfig = {
2225
placeholder:"https://<your-lowcoder-api-service>:port",
2326
tooltip:"Input the server url of your self-hosting instance or api-service.lowcoder.cloud if you are running your apps on the free public Community Edition Cloud Service.",
2427
},
25-
{
26-
"type":"groupTitle",
27-
"key":"API Key",
28-
"label":"Api Key Auth"
29-
},
3028
{
3129
type:"password",
3230
key:"bearerAuth.value",
@@ -72,13 +70,15 @@ const lowcoderPlugin: DataSourcePlugin<any, DataSourceConfigType> = {
7270
};
7371
},
7472
run:function(actionData,dataSourceConfig):Promise<any>{
75-
const{ serverURL, ...otherDataSourceConfig}=dataSourceConfig;
73+
const{ serverURL, specVersion, dynamicParamsConfig, ...otherDataSourceConfig}=dataSourceConfig;
74+
7675
construnApiDsConfig={
7776
url:"",
7877
serverURL:serverURL,
7978
dynamicParamsConfig:otherDataSourceConfig,
80-
specVersion:dataSourceConfig.specVersion,
79+
specVersion:specVersion
8180
};
81+
8282
returnrunOpenApi(actionData,runApiDsConfig,version2spec(specs,dataSourceConfig.specVersion)asOpenAPIV3.Document);
8383
},
8484
};
File renamed without changes.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp