fix: dataRefs is null

This commit is contained in:
npc0-hue
2026-08-20 10:32:45 +08:00
parent 585c32746e
commit 1ada76ecc8
5 changed files with 18 additions and 7 deletions
+3 -1
View File
@@ -640,7 +640,9 @@ func validateGameClientBridgeManifest(field string, bridge domain.GameClientBrid
if dataPack.DatabaseUserVersion < 1 || len(dataPack.LogParserRefs) == 0 || len(dataPack.ConfigMapRefs) == 0 {
violations = append(violations, prefix+" must declare a database version and parser/config assets")
}
for _, ref := range append(domain.CopyStringSlice(dataPack.LogParserRefs), dataPack.ConfigMapRefs...) {
refs := append(domain.CopyStringSlice(dataPack.LogParserRefs), dataPack.ConfigMapRefs...)
refs = append(refs, dataPack.DataRefs...)
for _, ref := range refs {
if !safeRelativeJSONRef(ref) {
violations = append(violations, prefix+" asset reference is invalid")
}