Skip to content

Commit 9fe03f2

Browse files
committed
fix(core): ignore extraneous properties in Spigot manifests
1 parent 5a225ef commit 9fe03f2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/src/main/kotlin/me/kcra/takenaka/core/VersionManifest.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,7 @@ inline fun VersionManifest.range(
413413
*
414414
* @property refs the Git ref hashes (BuildData, Bukkit, CraftBukkit, Spigot)
415415
*/
416+
@JsonIgnoreProperties(ignoreUnknown = true)
416417
data class SpigotVersionManifest(
417418
val name: String,
418419
val description: String,
@@ -424,6 +425,7 @@ data class SpigotVersionManifest(
424425
/**
425426
* Spigot's BuildData info.json attributes.
426427
*/
428+
@JsonIgnoreProperties(ignoreUnknown = true)
427429
data class SpigotVersionAttributes(
428430
val minecraftVersion: String,
429431
val spigotVersion: String?,

0 commit comments

Comments
 (0)