@sf-kmods/kdataforgejs-cli 2026.4.19 → 2026.4.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -2
- package/dist/cli.js +35 -2
- package/dist/commands/add.js +148 -0
- package/dist/commands/dev.js +114 -0
- package/dist/commands/doctor.js +56 -0
- package/dist/commands/gameData.js +165 -6
- package/dist/commands/sync.js +12 -3
- package/dist/types/configTypes.js +74 -0
- package/dist/types/contentTypes.js +152 -0
- package/dist/types/organize.js +4 -2
- package/package.json +4 -2
- package/schemas/actor-selector.schema.yml +39 -0
- package/schemas/asset.schema.yml +27 -0
- package/schemas/building.schema.yml +16 -0
- package/schemas/category_reorder.schema.yml +41 -0
- package/schemas/cdo.schema.yml +92 -0
- package/schemas/class.schema.yml +27 -0
- package/schemas/common.schema.yml +543 -0
- package/schemas/config.schema.yml +208 -0
- package/schemas/curve.schema.yml +59 -0
- package/schemas/dataasset.schema.yml +33 -0
- package/schemas/eventrule.schema.yml +47 -0
- package/schemas/gametag.schema.yml +24 -0
- package/schemas/item.schema.yml +16 -0
- package/schemas/localization.schema.yml +27 -0
- package/schemas/mam.schema.yml +5 -0
- package/schemas/pack.schema.yml +60 -0
- package/schemas/recipe.schema.yml +26 -0
- package/schemas/research.schema.yml +76 -0
- package/schemas/resource.schema.yml +16 -0
- package/schemas/resourcenode.schema.yml +117 -0
- package/schemas/schematic.schema.yml +75 -0
- package/schemas/sinkpoints.schema.yml +29 -0
- package/schemas/sound.schema.yml +45 -0
- package/schemas/sublevel.schema.yml +16 -0
- package/schemas/unlock.schema.yml +21 -0
- package/templates/default/README.md +5 -0
- package/templates/default/package.json +2 -0
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
$schema: https://json-schema.org/draft/2020-12/schema
|
|
2
|
+
$id: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/config.schema.yml
|
|
3
|
+
x-kdf-type: config
|
|
4
|
+
title: KDataForge pack configuration
|
|
5
|
+
allOf:
|
|
6
|
+
- $ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/documentBase
|
|
7
|
+
- type: object
|
|
8
|
+
required: [fields]
|
|
9
|
+
properties:
|
|
10
|
+
type: { const: config }
|
|
11
|
+
category:
|
|
12
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/nonEmptyString
|
|
13
|
+
fields:
|
|
14
|
+
type: array
|
|
15
|
+
minItems: 1
|
|
16
|
+
items:
|
|
17
|
+
$ref: '#/$defs/field'
|
|
18
|
+
unevaluatedProperties: false
|
|
19
|
+
$defs:
|
|
20
|
+
tooltip:
|
|
21
|
+
type: object
|
|
22
|
+
additionalProperties: false
|
|
23
|
+
minProperties: 1
|
|
24
|
+
properties:
|
|
25
|
+
title:
|
|
26
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/textValue
|
|
27
|
+
text:
|
|
28
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/textValue
|
|
29
|
+
scalarValue:
|
|
30
|
+
type: [string, number, boolean]
|
|
31
|
+
option:
|
|
32
|
+
type: object
|
|
33
|
+
additionalProperties: false
|
|
34
|
+
required: [value, label]
|
|
35
|
+
properties:
|
|
36
|
+
value:
|
|
37
|
+
$ref: '#/$defs/scalarValue'
|
|
38
|
+
label:
|
|
39
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/textValue
|
|
40
|
+
field:
|
|
41
|
+
type: object
|
|
42
|
+
required: [id, type, name, description, default]
|
|
43
|
+
properties:
|
|
44
|
+
id:
|
|
45
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/configId
|
|
46
|
+
type:
|
|
47
|
+
enum: [text, number, boolean, select]
|
|
48
|
+
name:
|
|
49
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/textValue
|
|
50
|
+
description:
|
|
51
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/textValue
|
|
52
|
+
tooltip:
|
|
53
|
+
$ref: '#/$defs/tooltip'
|
|
54
|
+
category:
|
|
55
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/nonEmptyString
|
|
56
|
+
apply:
|
|
57
|
+
enum: [hot, cold]
|
|
58
|
+
default: cold
|
|
59
|
+
order:
|
|
60
|
+
type: integer
|
|
61
|
+
default: {}
|
|
62
|
+
# Reserved for a later version (custom description classes). Accepted by the schema, reported as
|
|
63
|
+
# config.reserved-key by the semantic rules, ignored by the runtime.
|
|
64
|
+
descriptionClass:
|
|
65
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/nonEmptyString
|
|
66
|
+
properties: {}
|
|
67
|
+
allOf:
|
|
68
|
+
- $ref: '#/$defs/whenText'
|
|
69
|
+
- $ref: '#/$defs/whenNumber'
|
|
70
|
+
- $ref: '#/$defs/whenBoolean'
|
|
71
|
+
- $ref: '#/$defs/whenSelect'
|
|
72
|
+
unevaluatedProperties: false
|
|
73
|
+
whenText:
|
|
74
|
+
if:
|
|
75
|
+
required: [type]
|
|
76
|
+
properties:
|
|
77
|
+
type: { const: text }
|
|
78
|
+
then:
|
|
79
|
+
properties:
|
|
80
|
+
valueType:
|
|
81
|
+
enum: [string, text, name, tag]
|
|
82
|
+
multiple: { type: boolean }
|
|
83
|
+
multiline: { type: boolean }
|
|
84
|
+
maxLength: { type: integer, minimum: 1 }
|
|
85
|
+
tagRoot:
|
|
86
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/nonEmptyString
|
|
87
|
+
minCount: { type: integer, minimum: 0 }
|
|
88
|
+
maxCount: { type: integer, minimum: 1 }
|
|
89
|
+
allOf:
|
|
90
|
+
- if:
|
|
91
|
+
required: [multiline]
|
|
92
|
+
properties:
|
|
93
|
+
multiline: { const: true }
|
|
94
|
+
then:
|
|
95
|
+
required: [valueType]
|
|
96
|
+
properties:
|
|
97
|
+
valueType: { const: text }
|
|
98
|
+
- if:
|
|
99
|
+
required: [multiple]
|
|
100
|
+
properties:
|
|
101
|
+
multiple: { const: true }
|
|
102
|
+
then:
|
|
103
|
+
properties:
|
|
104
|
+
default:
|
|
105
|
+
type: array
|
|
106
|
+
items: { type: string }
|
|
107
|
+
else:
|
|
108
|
+
properties:
|
|
109
|
+
default: { type: string }
|
|
110
|
+
whenNumber:
|
|
111
|
+
if:
|
|
112
|
+
required: [type]
|
|
113
|
+
properties:
|
|
114
|
+
type: { const: number }
|
|
115
|
+
then:
|
|
116
|
+
properties:
|
|
117
|
+
valueType:
|
|
118
|
+
enum: [int32, int8, int16, int64, uint8, float, double]
|
|
119
|
+
multiple: { type: boolean }
|
|
120
|
+
min: { type: number }
|
|
121
|
+
max: { type: number }
|
|
122
|
+
step: { type: number, exclusiveMinimum: 0 }
|
|
123
|
+
decimals: { type: integer, minimum: 0, maximum: 9 }
|
|
124
|
+
display:
|
|
125
|
+
enum: [slider, input]
|
|
126
|
+
minCount: { type: integer, minimum: 0 }
|
|
127
|
+
maxCount: { type: integer, minimum: 1 }
|
|
128
|
+
allOf:
|
|
129
|
+
- if:
|
|
130
|
+
required: [multiple]
|
|
131
|
+
properties:
|
|
132
|
+
multiple: { const: true }
|
|
133
|
+
then:
|
|
134
|
+
properties:
|
|
135
|
+
default:
|
|
136
|
+
type: array
|
|
137
|
+
items: { type: number }
|
|
138
|
+
else:
|
|
139
|
+
properties:
|
|
140
|
+
default: { type: number }
|
|
141
|
+
- if:
|
|
142
|
+
required: [display]
|
|
143
|
+
properties:
|
|
144
|
+
display: { const: slider }
|
|
145
|
+
then:
|
|
146
|
+
required: [min, max]
|
|
147
|
+
# An omitted valueType means int32, so integer rules apply unless a float type is named.
|
|
148
|
+
- if:
|
|
149
|
+
anyOf:
|
|
150
|
+
- not:
|
|
151
|
+
required: [valueType]
|
|
152
|
+
- required: [valueType]
|
|
153
|
+
properties:
|
|
154
|
+
valueType:
|
|
155
|
+
enum: [int32, int8, int16, int64, uint8]
|
|
156
|
+
then:
|
|
157
|
+
properties:
|
|
158
|
+
min: { type: integer }
|
|
159
|
+
max: { type: integer }
|
|
160
|
+
step: { type: integer, minimum: 1 }
|
|
161
|
+
default:
|
|
162
|
+
anyOf:
|
|
163
|
+
- type: integer
|
|
164
|
+
- type: array
|
|
165
|
+
items: { type: integer }
|
|
166
|
+
whenBoolean:
|
|
167
|
+
if:
|
|
168
|
+
required: [type]
|
|
169
|
+
properties:
|
|
170
|
+
type: { const: boolean }
|
|
171
|
+
then:
|
|
172
|
+
properties:
|
|
173
|
+
valueType:
|
|
174
|
+
enum: [bool, uint8]
|
|
175
|
+
default: { type: boolean }
|
|
176
|
+
whenSelect:
|
|
177
|
+
if:
|
|
178
|
+
required: [type]
|
|
179
|
+
properties:
|
|
180
|
+
type: { const: select }
|
|
181
|
+
then:
|
|
182
|
+
required: [options]
|
|
183
|
+
properties:
|
|
184
|
+
valueType:
|
|
185
|
+
enum: [string, text, name, tag, int8, int16, int32, int64, uint8, float, double, bool]
|
|
186
|
+
multiple: { type: boolean }
|
|
187
|
+
options:
|
|
188
|
+
type: array
|
|
189
|
+
minItems: 1
|
|
190
|
+
items:
|
|
191
|
+
$ref: '#/$defs/option'
|
|
192
|
+
minSelected: { type: integer, minimum: 0 }
|
|
193
|
+
maxSelected: { type: integer, minimum: 1 }
|
|
194
|
+
allOf:
|
|
195
|
+
- if:
|
|
196
|
+
required: [multiple]
|
|
197
|
+
properties:
|
|
198
|
+
multiple: { const: true }
|
|
199
|
+
then:
|
|
200
|
+
properties:
|
|
201
|
+
default:
|
|
202
|
+
type: array
|
|
203
|
+
items:
|
|
204
|
+
$ref: '#/$defs/scalarValue'
|
|
205
|
+
else:
|
|
206
|
+
properties:
|
|
207
|
+
default:
|
|
208
|
+
$ref: '#/$defs/scalarValue'
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
$schema: https://json-schema.org/draft/2020-12/schema
|
|
2
|
+
$id: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/curve.schema.yml
|
|
3
|
+
x-kdf-type: curve
|
|
4
|
+
title: KDataForge curves
|
|
5
|
+
allOf:
|
|
6
|
+
- $ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/documentBase
|
|
7
|
+
- type: object
|
|
8
|
+
required: [curveType, curves]
|
|
9
|
+
properties:
|
|
10
|
+
type: { const: curve }
|
|
11
|
+
curveType: { enum: [float, vector] }
|
|
12
|
+
curves:
|
|
13
|
+
type: array
|
|
14
|
+
minItems: 1
|
|
15
|
+
items:
|
|
16
|
+
type: object
|
|
17
|
+
additionalProperties: false
|
|
18
|
+
required: [keys]
|
|
19
|
+
properties:
|
|
20
|
+
id:
|
|
21
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/token
|
|
22
|
+
target:
|
|
23
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/nonEmptyString
|
|
24
|
+
defaultValue:
|
|
25
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/numberOrVector
|
|
26
|
+
preInfinityExtrap:
|
|
27
|
+
enum: [none, constant, linear, cycle, cycleWithOffset, oscillate]
|
|
28
|
+
postInfinityExtrap:
|
|
29
|
+
enum: [none, constant, linear, cycle, cycleWithOffset, oscillate]
|
|
30
|
+
isEventCurve: { type: boolean }
|
|
31
|
+
keys:
|
|
32
|
+
type: array
|
|
33
|
+
minItems: 1
|
|
34
|
+
items:
|
|
35
|
+
type: object
|
|
36
|
+
additionalProperties: false
|
|
37
|
+
required: [time, value]
|
|
38
|
+
properties:
|
|
39
|
+
time:
|
|
40
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/numericScalar
|
|
41
|
+
value:
|
|
42
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/numberOrVector
|
|
43
|
+
interpMode: { enum: [constant, linear, cubic] }
|
|
44
|
+
tangentMode: { enum: [auto, smartAuto, user, break] }
|
|
45
|
+
tangentWeightMode: { enum: [none, arrive, leave, both] }
|
|
46
|
+
arriveTangent:
|
|
47
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/numberOrVector
|
|
48
|
+
leaveTangent:
|
|
49
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/numberOrVector
|
|
50
|
+
arriveTangentWeight:
|
|
51
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/numberOrVector
|
|
52
|
+
leaveTangentWeight:
|
|
53
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/numberOrVector
|
|
54
|
+
oneOf:
|
|
55
|
+
- required: [id]
|
|
56
|
+
not: { required: [target] }
|
|
57
|
+
- required: [target]
|
|
58
|
+
not: { required: [id] }
|
|
59
|
+
unevaluatedProperties: false
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
$schema: https://json-schema.org/draft/2020-12/schema
|
|
2
|
+
$id: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/dataasset.schema.yml
|
|
3
|
+
x-kdf-type: dataasset
|
|
4
|
+
title: KDataForge primary data assets
|
|
5
|
+
allOf:
|
|
6
|
+
- $ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/documentBase
|
|
7
|
+
- type: object
|
|
8
|
+
required: [assets]
|
|
9
|
+
properties:
|
|
10
|
+
type: { const: dataasset }
|
|
11
|
+
assets:
|
|
12
|
+
type: array
|
|
13
|
+
minItems: 1
|
|
14
|
+
items:
|
|
15
|
+
type: object
|
|
16
|
+
additionalProperties: false
|
|
17
|
+
required: [id, class]
|
|
18
|
+
properties:
|
|
19
|
+
id:
|
|
20
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/token
|
|
21
|
+
class:
|
|
22
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/nonEmptyString
|
|
23
|
+
properties:
|
|
24
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/properties
|
|
25
|
+
unlocks:
|
|
26
|
+
type: array
|
|
27
|
+
items:
|
|
28
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/instancedObject
|
|
29
|
+
dependencies:
|
|
30
|
+
type: array
|
|
31
|
+
items:
|
|
32
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/instancedObject
|
|
33
|
+
unevaluatedProperties: false
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
$schema: https://json-schema.org/draft/2020-12/schema
|
|
2
|
+
$id: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/eventrule.schema.yml
|
|
3
|
+
x-kdf-type: eventrule
|
|
4
|
+
title: KDataForge event rules
|
|
5
|
+
allOf:
|
|
6
|
+
- $ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/documentBase
|
|
7
|
+
- type: object
|
|
8
|
+
required: [rules]
|
|
9
|
+
properties:
|
|
10
|
+
type: { const: eventrule }
|
|
11
|
+
rules:
|
|
12
|
+
type: array
|
|
13
|
+
minItems: 1
|
|
14
|
+
maxItems: 256
|
|
15
|
+
items:
|
|
16
|
+
type: object
|
|
17
|
+
additionalProperties: false
|
|
18
|
+
required: [id, event, actions]
|
|
19
|
+
properties:
|
|
20
|
+
id: { type: string, minLength: 1, maxLength: 128, pattern: '^[A-Za-z0-9._-]+$' }
|
|
21
|
+
event: { enum: [worldReady, schematicPurchased] }
|
|
22
|
+
schematic: { type: string, minLength: 1, pattern: '\S' }
|
|
23
|
+
once: { type: boolean, default: true }
|
|
24
|
+
requiresSchematics:
|
|
25
|
+
type: array
|
|
26
|
+
maxItems: 64
|
|
27
|
+
items: { type: string, minLength: 1, pattern: '\S' }
|
|
28
|
+
actions:
|
|
29
|
+
type: array
|
|
30
|
+
minItems: 1
|
|
31
|
+
maxItems: 32
|
|
32
|
+
items:
|
|
33
|
+
type: object
|
|
34
|
+
additionalProperties: false
|
|
35
|
+
properties:
|
|
36
|
+
unlockSchematic: { type: string, minLength: 1, pattern: '\S' }
|
|
37
|
+
log: { type: string, minLength: 1, maxLength: 2048, pattern: '\S' }
|
|
38
|
+
oneOf:
|
|
39
|
+
- required: [unlockSchematic]
|
|
40
|
+
- required: [log]
|
|
41
|
+
if:
|
|
42
|
+
properties:
|
|
43
|
+
event: { const: worldReady }
|
|
44
|
+
then:
|
|
45
|
+
not:
|
|
46
|
+
required: [schematic]
|
|
47
|
+
unevaluatedProperties: false
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
$schema: https://json-schema.org/draft/2020-12/schema
|
|
2
|
+
$id: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/gametag.schema.yml
|
|
3
|
+
x-kdf-type: gametag
|
|
4
|
+
title: KDataForge gameplay tags
|
|
5
|
+
allOf:
|
|
6
|
+
- $ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/documentBase
|
|
7
|
+
- type: object
|
|
8
|
+
required: [tags]
|
|
9
|
+
properties:
|
|
10
|
+
type: { const: gametag }
|
|
11
|
+
tags:
|
|
12
|
+
type: array
|
|
13
|
+
minItems: 1
|
|
14
|
+
items:
|
|
15
|
+
oneOf:
|
|
16
|
+
- $ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/nonEmptyString
|
|
17
|
+
- type: object
|
|
18
|
+
additionalProperties: false
|
|
19
|
+
required: [tag]
|
|
20
|
+
properties:
|
|
21
|
+
tag:
|
|
22
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/nonEmptyString
|
|
23
|
+
comment: { type: string }
|
|
24
|
+
unevaluatedProperties: false
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
$schema: https://json-schema.org/draft/2020-12/schema
|
|
2
|
+
$id: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/item.schema.yml
|
|
3
|
+
x-kdf-type: item
|
|
4
|
+
title: KDataForge items
|
|
5
|
+
allOf:
|
|
6
|
+
- $ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/documentBase
|
|
7
|
+
- type: object
|
|
8
|
+
required: [items]
|
|
9
|
+
properties:
|
|
10
|
+
type: { const: item }
|
|
11
|
+
items:
|
|
12
|
+
type: array
|
|
13
|
+
minItems: 1
|
|
14
|
+
items:
|
|
15
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/generatedEntry
|
|
16
|
+
unevaluatedProperties: false
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
$schema: https://json-schema.org/draft/2020-12/schema
|
|
2
|
+
$id: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/localization.schema.yml
|
|
3
|
+
x-kdf-type: localization
|
|
4
|
+
title: KDataForge localization
|
|
5
|
+
allOf:
|
|
6
|
+
- $ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/documentBase
|
|
7
|
+
- type: object
|
|
8
|
+
required: [namespace, entries]
|
|
9
|
+
properties:
|
|
10
|
+
type: { const: localization }
|
|
11
|
+
namespace:
|
|
12
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/nonEmptyString
|
|
13
|
+
culture:
|
|
14
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/nonEmptyString
|
|
15
|
+
entries:
|
|
16
|
+
type: object
|
|
17
|
+
minProperties: 1
|
|
18
|
+
additionalProperties:
|
|
19
|
+
oneOf:
|
|
20
|
+
- type: string
|
|
21
|
+
- type: object
|
|
22
|
+
additionalProperties: false
|
|
23
|
+
required: [text]
|
|
24
|
+
properties:
|
|
25
|
+
source: { type: string }
|
|
26
|
+
text: { type: string, minLength: 1 }
|
|
27
|
+
unevaluatedProperties: false
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
$schema: https://json-schema.org/draft/2020-12/schema
|
|
2
|
+
$id: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/mam.schema.yml
|
|
3
|
+
x-kdf-type: mam
|
|
4
|
+
title: KDataForge MAM alias
|
|
5
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/research.schema.yml
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
$schema: https://json-schema.org/draft/2020-12/schema
|
|
2
|
+
$id: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/pack.schema.yml
|
|
3
|
+
x-kdf-type: pack
|
|
4
|
+
title: KDataForge pack manifest
|
|
5
|
+
type: object
|
|
6
|
+
additionalProperties: false
|
|
7
|
+
required: [ref, name, version, contributer]
|
|
8
|
+
properties:
|
|
9
|
+
$schema:
|
|
10
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/schemaReference
|
|
11
|
+
ref:
|
|
12
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/token
|
|
13
|
+
name:
|
|
14
|
+
oneOf:
|
|
15
|
+
- $ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/nonEmptyString
|
|
16
|
+
- $ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/localizedText
|
|
17
|
+
description:
|
|
18
|
+
oneOf:
|
|
19
|
+
- type: string
|
|
20
|
+
- $ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/localizedText
|
|
21
|
+
# Pack icon: pack-relative png/jpg/jpeg/tga/bmp file, or a /Game/... texture object path.
|
|
22
|
+
icon:
|
|
23
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/nonEmptyString
|
|
24
|
+
version:
|
|
25
|
+
type: string
|
|
26
|
+
pattern: '^\d+\.\d+\.\d+(?:[-+][0-9A-Za-z.-]+)?$'
|
|
27
|
+
contributer:
|
|
28
|
+
oneOf:
|
|
29
|
+
- $ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/token
|
|
30
|
+
- type: array
|
|
31
|
+
minItems: 1
|
|
32
|
+
uniqueItems: true
|
|
33
|
+
items:
|
|
34
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/token
|
|
35
|
+
priority:
|
|
36
|
+
type: integer
|
|
37
|
+
minimum: -2147483648
|
|
38
|
+
maximum: 2147483647
|
|
39
|
+
default: 100
|
|
40
|
+
enabled:
|
|
41
|
+
type: boolean
|
|
42
|
+
default: true
|
|
43
|
+
debug:
|
|
44
|
+
type: boolean
|
|
45
|
+
default: false
|
|
46
|
+
conditionBehaivor:
|
|
47
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/conditionBehavior
|
|
48
|
+
conditionBehavior:
|
|
49
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/conditionBehavior
|
|
50
|
+
conditions:
|
|
51
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/conditions
|
|
52
|
+
dependencies:
|
|
53
|
+
type: array
|
|
54
|
+
uniqueItems: true
|
|
55
|
+
items:
|
|
56
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/token
|
|
57
|
+
redirects:
|
|
58
|
+
type: object
|
|
59
|
+
additionalProperties:
|
|
60
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/token
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
$schema: https://json-schema.org/draft/2020-12/schema
|
|
2
|
+
$id: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/recipe.schema.yml
|
|
3
|
+
x-kdf-type: recipe
|
|
4
|
+
title: KDataForge recipes
|
|
5
|
+
allOf:
|
|
6
|
+
- $ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/documentBase
|
|
7
|
+
- type: object
|
|
8
|
+
properties:
|
|
9
|
+
type: { const: recipe }
|
|
10
|
+
remove:
|
|
11
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/contentRemoval
|
|
12
|
+
anyOf:
|
|
13
|
+
- required: [recipes]
|
|
14
|
+
properties:
|
|
15
|
+
recipes:
|
|
16
|
+
type: array
|
|
17
|
+
minItems: 1
|
|
18
|
+
items:
|
|
19
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/registerableEntry
|
|
20
|
+
- required: [remove]
|
|
21
|
+
properties:
|
|
22
|
+
recipes:
|
|
23
|
+
not:
|
|
24
|
+
type: array
|
|
25
|
+
minItems: 1
|
|
26
|
+
unevaluatedProperties: false
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
$schema: https://json-schema.org/draft/2020-12/schema
|
|
2
|
+
$id: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/research.schema.yml
|
|
3
|
+
x-kdf-type: research
|
|
4
|
+
title: KDataForge research trees
|
|
5
|
+
$defs:
|
|
6
|
+
entry:
|
|
7
|
+
type: object
|
|
8
|
+
additionalProperties: false
|
|
9
|
+
properties:
|
|
10
|
+
id:
|
|
11
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/token
|
|
12
|
+
class:
|
|
13
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/nonEmptyString
|
|
14
|
+
parent:
|
|
15
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/nonEmptyString
|
|
16
|
+
register: { type: boolean }
|
|
17
|
+
properties:
|
|
18
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/properties
|
|
19
|
+
unlockDependencies:
|
|
20
|
+
type: array
|
|
21
|
+
items:
|
|
22
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/instancedObject
|
|
23
|
+
visibilityDependencies:
|
|
24
|
+
type: array
|
|
25
|
+
items:
|
|
26
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/instancedObject
|
|
27
|
+
autoPath: { type: boolean, default: false }
|
|
28
|
+
addNodes:
|
|
29
|
+
type: array
|
|
30
|
+
minItems: 1
|
|
31
|
+
items:
|
|
32
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/researchNode
|
|
33
|
+
nodes:
|
|
34
|
+
type: array
|
|
35
|
+
minItems: 1
|
|
36
|
+
items:
|
|
37
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/researchNode
|
|
38
|
+
removeNodes:
|
|
39
|
+
type: array
|
|
40
|
+
minItems: 1
|
|
41
|
+
items:
|
|
42
|
+
oneOf:
|
|
43
|
+
- $ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/nonEmptyString
|
|
44
|
+
- type: object
|
|
45
|
+
additionalProperties: false
|
|
46
|
+
required: [schematic]
|
|
47
|
+
properties:
|
|
48
|
+
schematic:
|
|
49
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/nonEmptyString
|
|
50
|
+
oneOf:
|
|
51
|
+
- required: [id]
|
|
52
|
+
not: { required: [class] }
|
|
53
|
+
- required: [class]
|
|
54
|
+
not: { required: [id] }
|
|
55
|
+
allOf:
|
|
56
|
+
- $ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/documentBase
|
|
57
|
+
- type: object
|
|
58
|
+
properties:
|
|
59
|
+
type: { enum: [research, mam] }
|
|
60
|
+
remove:
|
|
61
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/contentRemoval
|
|
62
|
+
anyOf:
|
|
63
|
+
- required: [research]
|
|
64
|
+
properties:
|
|
65
|
+
research:
|
|
66
|
+
type: array
|
|
67
|
+
minItems: 1
|
|
68
|
+
items:
|
|
69
|
+
$ref: '#/$defs/entry'
|
|
70
|
+
- required: [remove]
|
|
71
|
+
properties:
|
|
72
|
+
research:
|
|
73
|
+
not:
|
|
74
|
+
type: array
|
|
75
|
+
minItems: 1
|
|
76
|
+
unevaluatedProperties: false
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
$schema: https://json-schema.org/draft/2020-12/schema
|
|
2
|
+
$id: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/resource.schema.yml
|
|
3
|
+
x-kdf-type: resource
|
|
4
|
+
title: KDataForge resources
|
|
5
|
+
allOf:
|
|
6
|
+
- $ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/documentBase
|
|
7
|
+
- type: object
|
|
8
|
+
required: [resources]
|
|
9
|
+
properties:
|
|
10
|
+
type: { const: resource }
|
|
11
|
+
resources:
|
|
12
|
+
type: array
|
|
13
|
+
minItems: 1
|
|
14
|
+
items:
|
|
15
|
+
$ref: https://raw.githubusercontent.com/Satisfactory-KMods/KDataForge-Linter/main/src/kdataforge_linter/schemas/common.schema.yml#/$defs/generatedEntry
|
|
16
|
+
unevaluatedProperties: false
|