Skip to content

Instantly share code, notes, and snippets.

@Atulin
Last active July 3, 2024 16:17
Show Gist options
  • Save Atulin/cf2574164b726d35b8de92e9fbc925c5 to your computer and use it in GitHub Desktop.
Save Atulin/cf2574164b726d35b8de92e9fbc925c5 to your computer and use it in GitHub Desktop.
Tierlist Stars schemas
{
"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#"
}
{
"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