fafranco82 / swdestinydb-json-data

29 stars 46 forks source link

All Redemption #303

Closed mlogie closed 3 years ago

mlogie commented 3 years ago

Thanks @fafranco82 and hopefully I haven't made any errors this time

fafranco82 commented 3 years ago

You can always follow the instructions to perform validation check :P.

In short, if you have python installed, make sure jsonschema is installed with pip install -U jsonschema

And then you only need to type python validate.py -f

fafranco82 commented 3 years ago

image

See? It's useful XD

mlogie commented 3 years ago

Ah yes, I will get python installed and do this next time, thank you

mlogie commented 3 years ago

And thanks for approving so quickly :)

fafranco82 commented 3 years ago

Mmmm, I'm trying to fix it adding that subtypes... but I you want to add where the battlefield is located, that use the subtitle attribute, not subtype....

For example, a battlefield from Awakenings:

{
    "affiliation_code": "neutral",
    "code": "01174",
    "deck_limit": 1,
    "faction_code": "gray",
    "has_die": false,
    "has_errata": false,
    "illustrator": "Mark Molnar",
    "is_unique": false,
    "name": "Starship Graveyard",
    "position": 174,
    "rarity_code": "S",
    "set_code": "AW",
    "subtitle": "Jakku",
    "text": "<b>Claim</b> - Choose a support or upgrade in your discard pile and place it on top of your deck.",
    "ttscardid": "1809",
    "type_code": "battlefield"
}