mirror of
https://github.com/correl/mage.git
synced 2024-11-28 19:19:55 +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;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
import static mage.verify.MtgJson.MTGJSON_IGNORE_NEW_PROPERTIES;
|
||||
|
||||
@JsonIgnoreProperties(ignoreUnknown = MTGJSON_IGNORE_NEW_PROPERTIES)
|
||||
public class JsonLegalities {
|
||||
@JsonProperty("1v1")
|
||||
public String oneVersusOne;
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
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 String date;
|
||||
public String version;
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
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 String date;
|
||||
public String text;
|
||||
|
|
Loading…
Reference in a new issue