Design for AllPricesV2.json #750
Labels
Enhancement
New feature or request
Help Wanted
Extra attention is needed
More Information Needed
Further information is requested
MTGJSON v5
Issue affects MTGJSON 5
v5.2.X
Will be addressed in MTGJSON v5.2.X
This proposal describes the creation of a new file, supplanting most of the functionality of the current AllPrices.json and expanding the number of data points. Among the limitations of the current solution there is the fact that the generated file is pretty big in terms of size, can only host one type of price and it providing redundant information.
Proposal
The current nested dictionary structure works on a top level view, but a few fields should be moved elsewhere since they are constant. The main element is represented as a dictionary containing a foil and nonfoil price (assuming the card can be both), or just one of them (depending on the foil properties).
As noted this design offers for expansion in case new price type are added per store, or new stores are added.
The static properties such as
currency
andwhether it's paper or online prices
are per-store properties and should not be in the main data section.Open questions
meta
could be a possibility but a new section could be added tooThe text was updated successfully, but these errors were encountered: