mirror of
https://git.openapi.site/https://github.com/desirecore/registry.git
synced 2026-10-22 00:53:11 +08:00
feat: 增加固定工作台应用目录兼容格式
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/** 发布者关系声明的跨字段检查;不推导安装、权限或运行时健康。 */
|
||||
export function validateApplicationContract(manifest) {
|
||||
if (!['docker-app', 'native-app', 'artifact'].includes(manifest.type)) return []
|
||||
if (!['docker-app', 'native-app', 'artifact', 'web-bundle'].includes(manifest.type)) return []
|
||||
const errors = []
|
||||
const ids = new Set()
|
||||
for (const entrypoint of Array.isArray(manifest.entrypoints) ? manifest.entrypoints : []) {
|
||||
|
||||
Reference in New Issue
Block a user