Forráskód Böngészése

Adding favorites to schema - not yet supported in code.

Samuel Jaffe 8 éve
szülő
commit
7c268c0cf6
1 módosított fájl, 11 hozzáadás és 4 törlés
  1. 11 4
      schema/inventory.json

+ 11 - 4
schema/inventory.json

@@ -44,7 +44,16 @@
       },
       "type": "array"
     },
-    "equipment": {
+    "equipment": {"$ref": "#/definitions/loadout"},
+    "favorites": {
+      "additionalProperties": {
+        "$ref": "#/definitions/loadout"
+      }
+    },
+    "wealth": {"$ref": "#/definitions/money"}
+  },
+  "definitions": {
+    "loadout": {
       "propertyNames": {"$ref": "#/definitions/slot"},
       "properties": {
         "RING": false,
@@ -53,9 +62,7 @@
       },
       "additionalProperties": {"type": "string"},
       "type": "object"
-    }
-  },
-  "definitions": {
+    },
     "slot": {
       "type": "string",
       "enum": [