JSON schemas for tierlist-stars (gh)
Last active
July 3, 2024 16:17
-
-
Save Atulin/cf2574164b726d35b8de92e9fbc925c5 to your computer and use it in GitHub Desktop.
Tierlist Stars schemas
This file contains 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
{ | |
"type": "object", | |
"properties": { | |
"$schema": { | |
"type": "string", | |
"const": "https://gist.githubusercontent.com/Atulin/cf2574164b726d35b8de92e9fbc925c5/raw/data%255Cschemas%255Ccharacter.json" | |
}, | |
"name": { | |
"type": "string" | |
}, | |
"rarity": { | |
"type": "integer", | |
"minimum": 1, | |
"maximum": 6 | |
}, | |
"image": { | |
"type": "string" | |
}, | |
"class": { | |
"type": "string", | |
"enum": [ | |
"detonator", | |
"converter", | |
"supporter", | |
"sniper" | |
] | |
}, | |
"element": { | |
"type": "string", | |
"enum": [ | |
"fire", | |
"forest", | |
"water", | |
"thunder" | |
] | |
}, | |
"element_secondary": { | |
"$ref": "#/properties/element" | |
}, | |
"traits": { | |
"type": "array", | |
"items": { | |
"type": "string", | |
"enum": [ | |
"uses dark tiles", | |
"creates dark tiles", | |
"uses enhanced tiles", | |
"creates enhanced tiles" | |
] | |
}, | |
"default": [] | |
}, | |
"class_details": { | |
"type": "string" | |
}, | |
"ratings": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"properties": { | |
"tier": { | |
"type": "string", | |
"enum": [ | |
"D", | |
"C", | |
"B", | |
"A", | |
"S", | |
"SS", | |
"SSS" | |
] | |
}, | |
"conditions": { | |
"type": "array", | |
"items": { | |
"anyOf": [ | |
{ | |
"type": "string", | |
"enum": [ | |
"Team", | |
"Niche" | |
] | |
}, | |
{ | |
"type": "string" | |
} | |
] | |
}, | |
"default": [] | |
}, | |
"breakthrough": { | |
"anyOf": [ | |
{ | |
"type": "integer", | |
"minimum": 0, | |
"maximum": 6 | |
}, | |
{ | |
"type": "string", | |
"const": "MBT" | |
} | |
] | |
}, | |
"refinement": { | |
"type": "integer", | |
"minimum": 0, | |
"maximum": 3 | |
}, | |
"modifier": { | |
"type": "string", | |
"enum": [ | |
"+", | |
"-" | |
] | |
}, | |
"description": { | |
"type": "string" | |
} | |
}, | |
"required": [ | |
"tier", | |
"description" | |
], | |
"additionalProperties": false | |
}, | |
"default": [] | |
}, | |
"advantages": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"disadvantages": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"explanation": { | |
"type": "string" | |
} | |
}, | |
"required": [ | |
"$schema", | |
"name", | |
"rarity", | |
"class", | |
"element", | |
"advantages", | |
"disadvantages", | |
"explanation" | |
], | |
"additionalProperties": false, | |
"$schema": "http://json-schema.org/draft-07/schema#" | |
} |
This file contains 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
{ | |
"type": "object", | |
"properties": { | |
"name": { | |
"type": "string" | |
}, | |
"rarity": { | |
"type": "integer", | |
"minimum": 1, | |
"maximum": 6 | |
}, | |
"image": { | |
"type": "string" | |
}, | |
"class": { | |
"type": "string", | |
"enum": [ | |
"detonator", | |
"converter", | |
"supporter", | |
"sniper" | |
] | |
}, | |
"element": { | |
"type": "string", | |
"enum": [ | |
"fire", | |
"forest", | |
"water", | |
"thunder" | |
] | |
}, | |
"element_secondary": { | |
"$ref": "#/properties/element" | |
}, | |
"class_details": { | |
"type": "string" | |
}, | |
"ratings": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"properties": { | |
"tier": { | |
"type": "string", | |
"enum": [ | |
"D", | |
"C", | |
"B", | |
"A", | |
"S", | |
"SS", | |
"SSS" | |
] | |
}, | |
"conditions": { | |
"type": "array", | |
"items": { | |
"anyOf": [ | |
{ | |
"type": "string", | |
"enum": [ | |
"Team", | |
"Niche" | |
] | |
}, | |
{ | |
"type": "string" | |
} | |
] | |
}, | |
"default": [] | |
}, | |
"breakthrough": { | |
"anyOf": [ | |
{ | |
"type": "integer", | |
"minimum": 0, | |
"maximum": 6 | |
}, | |
{ | |
"type": "string", | |
"const": "MBT" | |
} | |
] | |
}, | |
"refinement": { | |
"type": "integer", | |
"minimum": 0, | |
"maximum": 3 | |
}, | |
"modifier": { | |
"type": "string", | |
"enum": [ | |
"+", | |
"-" | |
] | |
}, | |
"description": { | |
"type": "string" | |
} | |
}, | |
"required": [ | |
"tier", | |
"description" | |
], | |
"additionalProperties": false | |
}, | |
"default": [] | |
}, | |
"advantages": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"disadvantages": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
} | |
}, | |
"explanation": { | |
"type": "string" | |
} | |
}, | |
"required": [ | |
"name", | |
"rarity", | |
"class", | |
"element", | |
"advantages", | |
"disadvantages", | |
"explanation" | |
], | |
"additionalProperties": false, | |
"$schema": "http://json-schema.org/draft-07/schema#" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment