fix(schema): 自检跳过常量项,避免 Team.NeutralId 误报失配
This commit is contained in:
1 parent
972928e848
commit
692b812e58
3 files changed
+3
No files matched your search
@@ -381,6 +381,7 @@
|
||||
var Out = { Ok: [], Missing: [] };
|
||||
Object.keys(Fields).forEach(function (Key) {
|
||||
if (Prefix && Key.indexOf(Prefix + '.') !== 0) return;
|
||||
if (typeof Fields[Key] !== 'string') return; // 常量项(如 Team.NeutralId)不参与自检
|
||||
var V = Get(Target, Key);
|
||||
if (V === undefined) Out.Missing.push(Key + ' → ' + Fields[Key]);
|
||||
else Out.Ok.push(Key + ' → ' + Fields[Key]);
|
||||
|
||||
@@ -381,6 +381,7 @@
|
||||
var Out = { Ok: [], Missing: [] };
|
||||
Object.keys(Fields).forEach(function (Key) {
|
||||
if (Prefix && Key.indexOf(Prefix + '.') !== 0) return;
|
||||
if (typeof Fields[Key] !== 'string') return; // 常量项(如 Team.NeutralId)不参与自检
|
||||
var V = Get(Target, Key);
|
||||
if (V === undefined) Out.Missing.push(Key + ' → ' + Fields[Key]);
|
||||
else Out.Ok.push(Key + ' → ' + Fields[Key]);
|
||||
|
||||
@@ -166,6 +166,7 @@
|
||||
var Out = { Ok: [], Missing: [] };
|
||||
Object.keys(Fields).forEach(function (Key) {
|
||||
if (Prefix && Key.indexOf(Prefix + '.') !== 0) return;
|
||||
if (typeof Fields[Key] !== 'string') return; // 常量项(如 Team.NeutralId)不参与自检
|
||||
var V = Get(Target, Key);
|
||||
if (V === undefined) Out.Missing.push(Key + ' → ' + Fields[Key]);
|
||||
else Out.Ok.push(Key + ' → ' + Fields[Key]);
|
||||
|
||||
Reference in new issue
Block a user