Skip to content

Commit

Permalink
lint: format
Browse files Browse the repository at this point in the history
  • Loading branch information
xTVaser committed Nov 25, 2024
1 parent 40b7994 commit 7ba228e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 53 deletions.
2 changes: 1 addition & 1 deletion schemas/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ Generated via typescript definitions:
npx ts-json-schema-generator --path './*.ts' --type 'ModMetadata' > mod-schema.v1.json
```

And then some value validations added on mostly for valid semver checking
And then some value validations added on mostly for valid semver checking
52 changes: 9 additions & 43 deletions schemas/mod-source/v1/mod-source-schema.v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,7 @@
},
"supportedGames": {
"items": {
"enum": [
"jak1",
"jak2",
"jak3",
"jakx"
],
"enum": ["jak1", "jak2", "jak3", "jakx"],
"type": "string"
},
"type": "array"
Expand All @@ -75,10 +70,7 @@
"properties": {
"assets": {
"additionalProperties": {
"type": [
"string",
"null"
]
"type": ["string", "null"]
},
"type": "object"
},
Expand All @@ -87,12 +79,7 @@
},
"supportedGames": {
"items": {
"enum": [
"jak1",
"jak2",
"jak3",
"jakx"
],
"enum": ["jak1", "jak2", "jak3", "jakx"],
"type": "string"
},
"type": "array"
Expand All @@ -101,11 +88,7 @@
"type": "string"
}
},
"required": [
"version",
"publishedDate",
"assets"
],
"required": ["version", "publishedDate", "assets"],
"type": "object"
},
"type": "array"
Expand Down Expand Up @@ -176,12 +159,7 @@
},
"supportedGames": {
"items": {
"enum": [
"jak1",
"jak2",
"jak3",
"jakx"
],
"enum": ["jak1", "jak2", "jak3", "jakx"],
"type": "string"
},
"type": "array"
Expand All @@ -201,10 +179,7 @@
"properties": {
"assets": {
"additionalProperties": {
"type": [
"string",
"null"
]
"type": ["string", "null"]
},
"type": "object"
},
Expand All @@ -213,12 +188,7 @@
},
"supportedGames": {
"items": {
"enum": [
"jak1",
"jak2",
"jak3",
"jakx"
],
"enum": ["jak1", "jak2", "jak3", "jakx"],
"type": "string"
},
"type": "array"
Expand All @@ -227,11 +197,7 @@
"type": "string"
}
},
"required": [
"version",
"publishedDate",
"assets"
],
"required": ["version", "publishedDate", "assets"],
"type": "object"
},
"type": "array"
Expand Down Expand Up @@ -263,4 +229,4 @@
"type": "object"
}
}
}
}
4 changes: 2 additions & 2 deletions schemas/mod-source/v1/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ export interface ModSourceData {
schemaVersion: Semver;
sourceName: string;
lastUpdated: string;
mods: Record<string, ModInfo>
texturePacks: Record<string, ModInfo>
mods: Record<string, ModInfo>;
texturePacks: Record<string, ModInfo>;
}
9 changes: 2 additions & 7 deletions schemas/texture-packs/v1/texture-pack-schema.v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,7 @@
},
"supportedGames": {
"items": {
"enum": [
"jak1",
"jak2",
"jak3",
"jakx"
],
"enum": ["jak1", "jak2", "jak3", "jakx"],
"type": "string"
},
"type": "array"
Expand Down Expand Up @@ -59,4 +54,4 @@
"type": "object"
}
}
}
}

0 comments on commit 7ba228e

Please sign in to comment.