Skip to content
This repository was archived by the owner on Apr 15, 2026. It is now read-only.

Commit 487e7fc

Browse files
committed
feat(schema): update json schema
1 parent 23de35c commit 487e7fc

4 files changed

Lines changed: 77 additions & 1 deletion

File tree

packages/cloudbaserc-json-schema/dist/cloudbaserc-json-schema.json

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@
153153
},
154154
{
155155
"$ref": "#/definitions/IFrameworkPluginMiniProgramInputsConfig"
156+
},
157+
{
158+
"$ref": "#/definitions/IFrameworkPluginAuthInputsConfig"
156159
}
157160
]
158161
},
@@ -1378,6 +1381,73 @@
13781381
"$ref": "#/definitions/IMiniProgramBuildSetting"
13791382
}
13801383
}
1384+
},
1385+
"IFrameworkPluginAuthInputsConfig": {
1386+
"additionalProperties": false,
1387+
"type": "object",
1388+
"properties": {
1389+
"use": {
1390+
"type": "string",
1391+
"enum": [
1392+
"@cloudbase/framework-plugin-auth"
1393+
]
1394+
},
1395+
"inputs": {
1396+
"description": "导出接口用于生成 JSON Schema 来进行智能提示",
1397+
"type": "object",
1398+
"properties": {
1399+
"configs": {
1400+
"type": "array",
1401+
"items": {
1402+
"$ref": "#/definitions/IAuthConfig"
1403+
}
1404+
}
1405+
},
1406+
"required": [
1407+
"configs"
1408+
],
1409+
"$schema": "http://json-schema.org/draft-07/schema#"
1410+
}
1411+
},
1412+
"required": [
1413+
"use",
1414+
"inputs"
1415+
]
1416+
},
1417+
"IAuthConfig": {
1418+
"type": "object",
1419+
"properties": {
1420+
"platform": {
1421+
"description": "登录平台",
1422+
"enum": [
1423+
"ANONYMOUS",
1424+
"NONLOGIN"
1425+
],
1426+
"type": "string"
1427+
},
1428+
"status": {
1429+
"description": "开通状态",
1430+
"enum": [
1431+
"DISABLE",
1432+
"ENABLE"
1433+
],
1434+
"type": "string"
1435+
},
1436+
"platformId": {
1437+
"description": "登录平台的 AppID,选填",
1438+
"type": "string"
1439+
},
1440+
"platformSecret": {
1441+
"description": "登录平台的 AppSecret,选填",
1442+
"type": "string"
1443+
}
1444+
},
1445+
"required": [
1446+
"platform",
1447+
"platformId",
1448+
"platformSecret",
1449+
"status"
1450+
]
13811451
}
13821452
}
13831453
}

packages/cloudbaserc-json-schema/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"@cloudbase/framework-plugin-node": "^1.3.1-beta.16+62d841a",
4343
"@cloudbase/framework-plugin-nuxt": "^1.3.1-beta.16+62d841a",
4444
"@cloudbase/framework-plugin-website": "^1.3.1-beta.16+62d841a",
45+
"@cloudbase/framework-plugin-auth": "^1.3.1-beta.16+62d841a",
4546
"typescript-json-schema": "^0.42.0"
4647
},
4748
"gitHead": "62d841aac1b42b7eb0639cbb54b859e1576915ec"

packages/cloudbaserc-json-schema/src/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ const supportPluginsConfig = [
4343
{
4444
name: '@cloudbase/framework-plugin-mp',
4545
inputsInterfaceName: 'IFrameworkPluginMiniProgramInputs',
46+
},
47+
{
48+
name: '@cloudbase/framework-plugin-auth',
49+
inputsInterfaceName: 'IFrameworkPluginAuthInputs',
4650
}
4751
];
4852

packages/cloudbaserc-json-schema/src/types/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ import "@cloudbase/framework-plugin-dart";
77
import "@cloudbase/framework-plugin-database";
88
import "@cloudbase/framework-plugin-deno";
99
import "@cloudbase/framework-plugin-next";
10-
import "@cloudbase/framework-plugin-mp";
10+
import "@cloudbase/framework-plugin-mp";
11+
import "@cloudbase/framework-plugin-auth";

0 commit comments

Comments
 (0)