mirror of
https://github.com/correl/mage.git
synced 2025-02-26 19:12:27 +00:00
Fixed mtgjson compatibility
This commit is contained in:
parent
73ad2fa969
commit
00633ce055
3 changed files with 14 additions and 0 deletions
|
@ -1,7 +1,11 @@
|
||||||
package mage.verify;
|
package mage.verify;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
import static mage.verify.MtgJson.MTGJSON_IGNORE_NEW_PROPERTIES;
|
||||||
|
|
||||||
|
@JsonIgnoreProperties(ignoreUnknown = MTGJSON_IGNORE_NEW_PROPERTIES)
|
||||||
public class JsonLegalities {
|
public class JsonLegalities {
|
||||||
@JsonProperty("1v1")
|
@JsonProperty("1v1")
|
||||||
public String oneVersusOne;
|
public String oneVersusOne;
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
package mage.verify;
|
package mage.verify;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||||
|
|
||||||
|
import static mage.verify.MtgJson.MTGJSON_IGNORE_NEW_PROPERTIES;
|
||||||
|
|
||||||
|
@JsonIgnoreProperties(ignoreUnknown = MTGJSON_IGNORE_NEW_PROPERTIES)
|
||||||
public class JsonMeta {
|
public class JsonMeta {
|
||||||
public String date;
|
public String date;
|
||||||
public String version;
|
public String version;
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
package mage.verify;
|
package mage.verify;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||||
|
|
||||||
|
import static mage.verify.MtgJson.MTGJSON_IGNORE_NEW_PROPERTIES;
|
||||||
|
|
||||||
|
@JsonIgnoreProperties(ignoreUnknown = MTGJSON_IGNORE_NEW_PROPERTIES)
|
||||||
public class JsonRuling {
|
public class JsonRuling {
|
||||||
public String date;
|
public String date;
|
||||||
public String text;
|
public String text;
|
||||||
|
|
Loading…
Add table
Reference in a new issue