matthew117

FTA NEI JSON Schema

May 6th, 2020
843
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 5.54 KB | None | 0 0
  1. {
  2.   "$schema": "http://json-schema.org/draft-04/schema#",
  3.   "type": "object",
  4.   "properties": {
  5.     "elements": {
  6.       "type": "array",
  7.       "items": {
  8.         "type": "object",
  9.         "properties": {
  10.           "output": {
  11.             "type": "string"
  12.           },
  13.           "inputs": {
  14.             "type": "object",
  15.             "properties": {
  16.               "elements": {
  17.                 "type": "array",
  18.                 "items": {
  19.                   "type": "object",
  20.                   "properties": {
  21.                     "element": {
  22.                       "type": "string"
  23.                     },
  24.                     "amount": {
  25.                       "type": "number"
  26.                     }
  27.                   },
  28.                   "required": [
  29.                     "element",
  30.                     "amount"
  31.                   ]
  32.                 }
  33.               },
  34.               "items": {
  35.                 "type": "array",
  36.                 "items": {
  37.                   "type": "object",
  38.                   "properties": {
  39.                     "itemID": {
  40.                       "type": "string"
  41.                     },
  42.                     "multiplier": {
  43.                       "type": "number"
  44.                     }
  45.                   },
  46.                   "required": [
  47.                     "itemID",
  48.                     "multiplier"
  49.                   ]
  50.                 }
  51.               }
  52.             },
  53.             "required": [
  54.               "elements",
  55.               "items"
  56.             ]
  57.           }
  58.         },
  59.         "required": [
  60.           "output",
  61.           "inputs"
  62.         ]
  63.       }
  64.     },
  65.     "atelier": {
  66.       "type": "array",
  67.       "items": {
  68.         "type": "object",
  69.         "properties": {
  70.           "research": {
  71.             "type": "array"
  72.           },
  73.           "output": {
  74.             "type": "string"
  75.           },
  76.           "inputs": {
  77.             "type": "object",
  78.             "properties": {
  79.               "elements": {
  80.                 "type": "array",
  81.                 "items": {
  82.                   "type": "object",
  83.                   "properties": {
  84.                     "element": {
  85.                       "type": "string"
  86.                     },
  87.                     "amount": {
  88.                       "type": "number"
  89.                     }
  90.                   },
  91.                   "required": [
  92.                     "element",
  93.                     "amount"
  94.                   ]
  95.                 }
  96.               },
  97.               "items": {
  98.                 "type": "array",
  99.                 "items": {
  100.                   "type": "object",
  101.                   "properties": {
  102.                     "itemID": {
  103.                       "type": "string"
  104.                     },
  105.                     "multiplier": {
  106.                       "type": "number"
  107.                     }
  108.                   },
  109.                   "required": [
  110.                     "itemID",
  111.                     "multiplier"
  112.                   ]
  113.                 }
  114.               }
  115.             },
  116.             "required": [
  117.               "elements",
  118.               "items"
  119.             ]
  120.           }
  121.         },
  122.         "required": [
  123.           "research",
  124.           "output",
  125.           "inputs"
  126.         ]
  127.       }
  128.     },
  129.     "grinding": {
  130.       "type": "array",
  131.       "items": {
  132.         "type": "object",
  133.         "properties": {
  134.           "input": {
  135.             "type": "string"
  136.           },
  137.           "output": {
  138.             "type": "object",
  139.             "properties": {
  140.               "itemID": {
  141.                 "type": "string"
  142.               },
  143.               "amount": {
  144.                 "type": "number"
  145.               }
  146.             },
  147.             "required": [
  148.               "itemID",
  149.               "amount"
  150.             ]
  151.           },
  152.           "bonus": {
  153.             "type": "object",
  154.             "properties": {
  155.               "itemID": {
  156.                 "type": "string"
  157.               },
  158.               "amount": {
  159.                 "type": "number"
  160.               },
  161.               "chance": {
  162.                 "type": "number"
  163.               }
  164.             },
  165.             "required": [
  166.               "itemID",
  167.               "amount",
  168.               "chance"
  169.             ]
  170.           }
  171.         },
  172.         "required": [
  173.           "input",
  174.           "output"
  175.         ]
  176.       }
  177.     },
  178.     "freezing": {
  179.       "type": "array",
  180.       "items": {
  181.         "type": "object",
  182.         "properties": {
  183.           "input": {
  184.             "type": "string"
  185.           },
  186.           "output": {
  187.             "type": "object",
  188.             "properties": {
  189.               "itemID": {
  190.                 "type": "string"
  191.               },
  192.               "amount": {
  193.                 "type": "number"
  194.               }
  195.             },
  196.             "required": [
  197.               "itemID",
  198.               "amount"
  199.             ]
  200.           },
  201.           "bonus": {
  202.             "type": "object",
  203.             "properties": {
  204.               "itemID": {
  205.                 "type": "string"
  206.               },
  207.               "amount": {
  208.                 "type": "number"
  209.               },
  210.               "chance": {
  211.                 "type": "number"
  212.               }
  213.             },
  214.             "required": [
  215.               "itemID",
  216.               "amount",
  217.               "chance"
  218.             ]
  219.           },
  220.           "hidden": {
  221.             "type": "boolean"
  222.           }
  223.         },
  224.         "required": [
  225.           "input",
  226.           "output"
  227.         ]
  228.       }
  229.     }
  230.   },
  231.   "required": [
  232.     "elements",
  233.     "atelier",
  234.     "grinding",
  235.     "freezing"
  236.   ]
  237. }
Add Comment
Please, Sign In to add comment