Skip to content

Commit 860757e

Browse files
authored
feat: mod validation changes for 1.0 (#94)
* feat: include iostore utoc and ucas as objects * feat: replace Plugins with GameVersion as required
1 parent 8a62f77 commit 860757e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

static/uplugin-json-schema.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"required": [
55
"FileVersion",
66
"Version",
7-
"Plugins"
7+
"GameVersion"
88
],
99
"properties": {
1010
"CanContainContent": {

validation/validation.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ func validateUPluginJSON(ctx context.Context, archive *zip.Reader, uPluginFile *
456456
if file != nil {
457457
splitName := strings.Split(file.Name, ".")
458458
extension := splitName[len(splitName)-1]
459-
if extension == "pak" {
459+
if extension == "pak" || extension == "utoc" || extension == "ucas" {
460460
modInfo.Objects = append(modInfo.Objects, ModObject{
461461
Path: file.Name,
462462
Type: "pak",

0 commit comments

Comments
 (0)