mtgjson / mtgjson-website

MTGJSON Documentation Front-End Application built with VitePress
https://mtgjson.com
MIT License
36 stars 24 forks source link

Non-documented properties in SetList data model #645

Open grim7reaper opened 3 weeks ago

grim7reaper commented 3 weeks ago

Location of update needed

SetList data model

Several properties that can be encountered in the SetList.json file are not documented.

Non-documented properties

languages and tokenSetCode

Example

{
  "baseSetSize": 594,
  "code": "30A",
  "isFoilOnly": false,
  "isNonFoilOnly": true,
  "isOnlineOnly": false,
  "keyruneCode": "30A",
  "languages": [
    "English"
  ],
  "tokenSetCode": "T30A",
  "totalSetSize": 594,
  "translations": {
    "Chinese Simplified": null,
    "Chinese Traditional": null,
    "French": "30th Anniversary Edition",
    "German": "30th Anniversary Edition",
    "Italian": "30th Anniversary Edition",
    "Japanese": null,
    "Korean": null,
    "Portuguese (Brazil)": null,
    "Russian": null,
    "Spanish": "30th Anniversary Edition"
  },
  "type": "memorabilia"
}

decks

Example

{
  "baseSetSize": 281,
  "cardsphereSetId": 1337,
  "code": "AFR",
  "decks": [
    {
      "code": "AFR",
      "commander": [],
      "mainBoard": [
        { "count": 1, "uuid": "2ab4f75a-db73-5acf-b7cf-79c0f87439a2" },
        { "count": 1, "isFoil": true, "uuid": "7f1e78e9-ef2e-5fe5-987d-16af8cff0f6d" },
        { "count": 1, "uuid": "4df4a564-0f40-5889-8903-32a2a888ae2a" },
        { "count": 1, "uuid": "f3db8dfc-2fb4-539f-aca5-2d61eca652c2" },
        { "count": 1, "uuid": "0be3f204-fb24-5dc8-88af-047c3a74bd6f" },
        { "count": 1, "uuid": "3bf4b80d-86f3-5ddb-966f-9166c392e93d" },
        { "count": 1, "uuid": "86d3b5a6-074c-50cd-be07-48b3318aace6" },
        { "count": 1, "isFoil": true, "uuid": "f17eebae-bc94-5f8f-90a0-1959b8eb94e4" },
        { "count": 1, "isFoil": true, "uuid": "0fd18bfb-3c45-5d74-ba52-28f0be493e87" }
      ],
      "name": "Adventures in the Forgotten Realms Welcome Booster",
      "releaseDate": "2021-07-23",
      "sealedProductUuids": null,
      "sideBoard": [],
      "type": "Welcome Booster"
    }
  ]
}

cardsphereSetId

Example

{
  "baseSetSize": 10,
  "cardsphereSetId": 1653,
  "code": "P30H",
  "isFoilOnly": true,
  "isOnlineOnly": false,
  "keyruneCode": "PMEI",
  "languages": [
    "English",
    "Japanese"
  ],
  "mcmId": 5171,
  "mcmName": "30th Anniversary History Promos",
  "name": "30th Anniversary History Promos",
  "parentCode": "30A",
  "releaseDate": "2022-09-09",
  "totalSetSize": 10,
  "translations": {},
  "type": "promo"
}

sealedProduct

sealedProduct should be marked as optional in the documentation (like it is for Set) because it is in the JSON.

{
  "baseSetSize": 2,
  "code": "P15A",
  "isFoilOnly": true,
  "isOnlineOnly": false,
  "keyruneCode": "DEFAULT",
  "languages": [
    "English"
  ],
  "name": "15th Anniversary Cards",
  "releaseDate": "2008-04-01",
  "totalSetSize": 2,
  "translations": {},
  "type": "promo"
}

Additional context

I'm using MTGJSON 5.2.2+20240816