mirror of
https://git.openapi.site/https://github.com/desirecore/registry.git
synced 2026-12-05 10:39:02 +08:00
feat: 补充固定工作台合成样本与 webBundles 校验 (#12)
新增静态、原生服务、Docker 三组合成的 listing-only 作者契约样本,补充 webBundles 目录统计与 definitionPath 规范路径检查。受主仓固定的 4.3 作者 Schema、正式 4.2 Schema、根 manifest 和 27 个条目均不变。 Add synthetic listing-only authoring fixtures, webBundles catalog statistics and a canonical definitionPath check. The pinned 4.3 authoring Schema, formal 4.2 Schema, root manifest and 27 entries are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5247054b7a
commit
13986db85e
17 files changed
+630
-5
No files matched your search
@@ -26,6 +26,9 @@ export function validateApplicationContract(manifest) {
|
||||
if (url.protocol !== 'https:' || url.username || url.password || url.hash || url.search) errors.push('source: credential-free fixed HTTPS URL required')
|
||||
} catch { errors.push('source: invalid URL') }
|
||||
if (source?.kind === 'git' && (typeof source.path !== 'string' || !isPortablePath(source.path))) errors.push('source: git archive path must be canonical and relative')
|
||||
// 内联定义不声明 definitionPath;声明时才要求规范相对路径。
|
||||
const definitionPath = manifest.appRelease?.definitionPath
|
||||
if (definitionPath !== undefined && (typeof definitionPath !== 'string' || !isPortablePath(definitionPath))) errors.push('appRelease: definitionPath must be canonical and relative')
|
||||
}
|
||||
const ids = new Set()
|
||||
for (const entrypoint of Array.isArray(manifest.entrypoints) ? manifest.entrypoints : []) {
|
||||
|
||||
Reference in new issue
Block a user