Created
December 2, 2016 23:19
-
-
Save keenan-v1/247232be00a072a838809e2fec2cb123 to your computer and use it in GitHub Desktop.
Recipe Schema
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$schema": "http://json-schema.org/draft-04/schema#", | |
| "title": "Recipes", | |
| "type": "array", | |
| "items": { | |
| "title": "Recipe", | |
| "type": "object", | |
| "properties": { | |
| "name": { | |
| "type":"string" | |
| }, | |
| "recipeid": { | |
| "type":"string" | |
| }, | |
| "known": { | |
| "type":"boolean" | |
| }, | |
| "nameable": { | |
| "type":"boolean" | |
| }, | |
| "lootable": { | |
| "type": "object", | |
| "properties": { | |
| "creature": {"type": "string"}, | |
| "rarity": {"type": "string"} | |
| } | |
| }, | |
| "skill":{ | |
| "type":"string" | |
| }, | |
| "trigger":{ | |
| "type":"string" | |
| }, | |
| "cookers": { | |
| "type": "array", | |
| "items": { | |
| "type": "object", | |
| "properties": { | |
| "id": {"type": "string"}, | |
| "difficulty": {"type": "number"} | |
| } | |
| } | |
| }, | |
| "containers": { | |
| "type": "array", | |
| "items": { | |
| "type": "object", | |
| "properties": { | |
| "id": {"type": "string"}, | |
| "difficulty": {"type": "number"} | |
| } | |
| } | |
| }, | |
| "active":{ | |
| "type": "object", | |
| "properties": { | |
| "id": {"type": "string"}, | |
| "cstate": {"type": "string"}, | |
| "pstate": {"type": "string"}, | |
| "material":{"type":"string"}, | |
| "realtemplate":{"type":"string"}, | |
| "difficulty":{"type":"number"}, | |
| "loss":{"type":"number"}, | |
| "ratio":{"type":"number"} | |
| }, | |
| "required": ["id"] | |
| }, | |
| "target":{ | |
| "type": "object", | |
| "properties": { | |
| "id": {"type": "string"}, | |
| "cstate": {"type": "string"}, | |
| "pstate": {"type": "string"}, | |
| "material":{"type":"string"}, | |
| "realtemplate":{"type":"string"}, | |
| "difficulty":{"type":"number"}, | |
| "loss":{"type":"number"}, | |
| "ratio":{"type":"number"}, | |
| "creature":{"type":"string"} | |
| }, | |
| "required": ["id"] | |
| }, | |
| "ingredients": { | |
| "type": "object", | |
| "properties": { | |
| "mandatory": { | |
| "type": "array", | |
| "items": { | |
| "type": "object", | |
| "properties": { | |
| "id": {"type": "string"}, | |
| "cstate": {"type": "string"}, | |
| "pstate": {"type": "string"}, | |
| "material":{"type":"string"}, | |
| "realtemplate":{"type":"string"}, | |
| "difficulty":{"type":"number"}, | |
| "ratio":{"type":"number"}, | |
| "loss":{"type":"number"}, | |
| "amount":{"type":"number"} | |
| }, | |
| "required": ["id"] | |
| } | |
| }, | |
| "zeroorone":{ | |
| "type": "array", | |
| "items": { | |
| "type": "object", | |
| "properties": { | |
| "list":{ | |
| "type": "array", | |
| "items": { | |
| "type": "object", | |
| "properties": { | |
| "id": {"type": "string"}, | |
| "cstate": {"type": "string"}, | |
| "pstate": {"type": "string"}, | |
| "material":{"type":"string"}, | |
| "realtemplate":{"type":"string"}, | |
| "difficulty":{"type":"number"}, | |
| "ratio":{"type":"number"}, | |
| "loss":{"type":"number"}, | |
| "amount":{"type":"number"} | |
| }, | |
| "required": ["id"] | |
| } | |
| } | |
| }, | |
| "required": ["list"] | |
| } | |
| }, | |
| "oneof":{ | |
| "type": "array", | |
| "items": { | |
| "type": "object", | |
| "properties": { | |
| "list":{ | |
| "type": "array", | |
| "items": { | |
| "type": "object", | |
| "properties": { | |
| "id": {"type": "string"}, | |
| "cstate": {"type": "string"}, | |
| "pstate": {"type": "string"}, | |
| "material":{"type":"string"}, | |
| "realtemplate":{"type":"string"}, | |
| "difficulty":{"type":"number"}, | |
| "ratio":{"type":"number"}, | |
| "loss":{"type":"number"}, | |
| "amount":{"type":"number"} | |
| }, | |
| "required": ["id"] | |
| } | |
| } | |
| }, | |
| "required": ["list"] | |
| } | |
| }, | |
| "oneormore":{ | |
| "type": "array", | |
| "items": { | |
| "type": "object", | |
| "properties": { | |
| "list":{ | |
| "type": "array", | |
| "items": { | |
| "type": "object", | |
| "properties": { | |
| "id": {"type": "string"}, | |
| "cstate": {"type": "string"}, | |
| "pstate": {"type": "string"}, | |
| "material":{"type":"string"}, | |
| "realtemplate":{"type":"string"}, | |
| "difficulty":{"type":"number"}, | |
| "ratio":{"type":"number"}, | |
| "loss":{"type":"number"}, | |
| "amount":{"type":"number"} | |
| }, | |
| "required": ["id"] | |
| } | |
| } | |
| }, | |
| "required": ["list"] | |
| } | |
| }, | |
| "any":{ | |
| "type": "array", | |
| "items": { | |
| "type": "object", | |
| "properties": { | |
| "id": {"type": "string"}, | |
| "cstate": {"type": "string"}, | |
| "pstate": {"type": "string"}, | |
| "material":{"type":"string"}, | |
| "realtemplate":{"type":"string"}, | |
| "difficulty":{"type":"number"}, | |
| "ratio":{"type":"number"}, | |
| "loss":{"type":"number"}, | |
| "amount":{"type":"number"} | |
| }, | |
| "required": ["id"] | |
| } | |
| }, | |
| "optional":{ | |
| "type": "array", | |
| "items": { | |
| "type": "object", | |
| "properties": { | |
| "id": {"type": "string"}, | |
| "cstate": {"type": "string"}, | |
| "pstate": {"type": "string"}, | |
| "material":{"type":"string"}, | |
| "realtemplate":{"type":"string"}, | |
| "difficulty":{"type":"number"}, | |
| "ratio":{"type":"number"}, | |
| "loss":{"type":"number"}, | |
| "amount":{"type":"number"} | |
| }, | |
| "required": ["id"] | |
| } | |
| } | |
| } | |
| }, | |
| "result":{ | |
| "type": "object", | |
| "properties": { | |
| "id": {"type": "string"}, | |
| "name": {"type": "string"}, | |
| "cstate": {"type": "string"}, | |
| "pstate": {"type": "string"}, | |
| "material":{"type":"string"}, | |
| "realtemplate":{"type":"string"}, | |
| "refmaterial": {"type":"string"}, | |
| "refrealtemplate":{"type":"string"}, | |
| "difficulty":{"type":"number"}, | |
| "description":{"type":"string"}, | |
| "achievement":{"type":"string"}, | |
| "usetemplateweight":{"type":"boolean"}, | |
| "icon":{"type":"string"} | |
| }, | |
| "required": ["id"] | |
| } | |
| }, | |
| "required": ["recipeid","result","name"] | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment