mirror of
https://git.openapi.site/https://github.com/desirecore/registry.git
synced 2026-12-05 10:19:03 +08:00
feat: 上架视频剪辑固定应用材料 (#16)
发布固定 0.1.3 归档与独立 UUID 条目,保留旧全局 Schema,并补齐内联作者定义校验。客户端 197 与默认市场安装闭环仍须分别验证。 Publish the fixed 0.1.3 archive and UUID listing, preserving the existing global Schema and validating inline authored definitions. Client distribution and fresh market installation remain separate gates.
This commit is contained in:
16 files changed
+5780
-25
No files matched your search
@@ -141,6 +141,13 @@ function validateNode(value, schema, rootSchema, path, errors) {
|
||||
if (schema.items) {
|
||||
value.forEach((item, index) => validateNode(item, schema.items, rootSchema, joinPath(path, index), errors))
|
||||
}
|
||||
if (schema.contains !== undefined && !value.some((item, index) => {
|
||||
const candidateErrors = []
|
||||
validateNode(item, schema.contains, rootSchema, joinPath(path, index), candidateErrors)
|
||||
return candidateErrors.length === 0
|
||||
})) {
|
||||
errors.push({ path, message: '数组必须包含符合 contains 的元素' })
|
||||
}
|
||||
}
|
||||
|
||||
if (value !== null && typeof value === 'object' && !Array.isArray(value)) {
|
||||
|
||||
Reference in new issue
Block a user