Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{
"definitions": {},
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://sandboxvr.com/schema/gamedata.json",
"type": "object",
"title": "The GameData Schema",
"required": [
"experience",
"team",
"members",
],
"properties": {
"experience": {
"$id": "#/properties/experience",
"type": "object",
"title": "The Experience Schema",
"required": [
"id",
"language"
],
"properties": {
"id": {
"$id": "#/properties/experience/properties/id",
"type": "string",
"title": "The Id Schema",
"default": "",
"examples": [
"deadwood"
],
"pattern": "^(.*)$"
},
"language": {
"$id": "#/properties/experience/properties/language",
"type": "string",
"title": "The Language Schema",
"default": "",
"examples": [
"EN"
],
"pattern": "^(.*)$"
}
}
},
"team": {
"$id": "#/properties/team",
"type": "array",
"title": "The Team Schema",
"items": {
"$id": "#/properties/team/items",
"type": "object",
"title": "The Items Schema",
"required": [
"id",
"name",
"score",
"result",
"gameTime",
"tutorialTime",
"death"
],
"properties": {
"id": {
"$id": "#/properties/team/items/properties/id",
"type": "string",
"title": "The Id Schema",
"default": "",
"examples": [
"0"
],
"pattern": "^(.*)$"
},
"name": {
"$id": "#/properties/team/items/properties/name",
"type": "string",
"title": "The Name Schema",
"default": "",
"examples": [
"1"
],
"pattern": "^(.*)$"
},
"score": {
"$id": "#/properties/team/items/properties/score",
"type": "integer",
"title": "The Score Schema",
"default": 0,
"examples": [
0
]
},
"result": {
"$id": "#/properties/team/items/properties/result",
"type": "string",
"title": "The Result Schema",
"default": "",
"examples": [
"lose"
],
"pattern": "^(.*)$"
},
"gameTime": {
"$id": "#/properties/team/items/properties/gameTime",
"type": "integer",
"title": "The Gametime Schema",
"default": 0,
"examples": [
121
]
},
"tutorialTime": {
"$id": "#/properties/team/items/properties/tutorialTime",
"type": "integer",
"title": "The Tutorialtime Schema",
"default": 0,
"examples": [
16
]
},
"death": {
"$id": "#/properties/team/items/properties/death",
"type": "integer",
"title": "The Death Schema",
"default": 0,
"examples": [
0
]
}
}
}
},
"members": {
"$id": "#/properties/members",
"type": "array",
"title": "The Members Schema",
"items": {
"$id": "#/properties/members/items",
"type": "object",
"title": "The Items Schema",
"required": [
"name",
"score",
"damageDealt",
"damageTaken",
"shots",
"shotHits",
"accuracy",
"kill",
"character",
"mvp",
"damageBoss",
"death"
],
"properties": {
"name": {
"$id": "#/properties/members/items/properties/name",
"type": "string",
"title": "The Name Schema",
"default": "",
"examples": [
"1"
],
"pattern": "^(.*)$"
},
"score": {
"$id": "#/properties/members/items/properties/score",
"type": "integer",
"title": "The Score Schema",
"default": 0,
"examples": [
0
]
},
"damageDealt": {
"$id": "#/properties/members/items/properties/damageDealt",
"type": "integer",
"title": "The Damagedealt Schema",
"default": 0,
"examples": [
0
]
},
"damageTaken": {
"$id": "#/properties/members/items/properties/damageTaken",
"type": "integer",
"title": "The Damagetaken Schema",
"default": 0,
"examples": [
0
]
},
"shots": {
"$id": "#/properties/members/items/properties/shots",
"type": "integer",
"title": "The Shots Schema",
"default": 0,
"examples": [
0
]
},
"shotHits": {
"$id": "#/properties/members/items/properties/shotHits",
"type": "integer",
"title": "The Shothits Schema",
"default": 0,
"examples": [
0
]
},
"accuracy": {
"$id": "#/properties/members/items/properties/accuracy",
"type": "integer",
"title": "The Accuracy Schema",
"default": 0,
"examples": [
0
]
},
"kill": {
"$id": "#/properties/members/items/properties/kill",
"type": "array",
"title": "The Kill Schema",
"items": {
"$id": "#/properties/members/items/properties/kill/items",
"type": "object",
"title": "The Items Schema",
"required": [
"name",
"count"
],
"properties": {
"name": {
"$id": "#/properties/members/items/properties/kill/items/properties/name",
"type": "string",
"title": "The Name Schema",
"default": "",
"examples": [
"enemy"
],
"pattern": "^(.*)$"
},
"count": {
"$id": "#/properties/members/items/properties/kill/items/properties/count",
"type": "integer",
"title": "The Count Schema",
"default": 0,
"examples": [
0
]
}
}
}
},
"character": {
"$id": "#/properties/members/items/properties/character",
"type": "string",
"title": "The Character Schema",
"default": "",
"examples": [
"red"
],
"pattern": "^(.*)$"
},
"mvp": {
"$id": "#/properties/members/items/properties/mvp",
"type": "boolean",
"title": "The Mvp Schema",
"default": false,
"examples": [
false
]
},
"damageBoss": {
"$id": "#/properties/members/items/properties/damageBoss",
"type": "integer",
"title": "The Damageboss Schema",
"default": 0,
"examples": [
0
]
},
"death": {
"$id": "#/properties/members/items/properties/death",
"type": "integer",
"title": "The Death Schema",
"default": 0,
"examples": [
0
]
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment