{
	"$schema": "https://json-schema.org/draft/2020-12/schema",
	"$id": "psionics.json",
	"version": "1.3.0",
	"type": "object",
	"$defs": {
		"psionicData": {
			"type": "object",
			"properties": {
				"name": {
					"type": "string"
				},
				"source": {
					"$ref": "util.json#/$defs/source"
				},
				"page": {
					"$ref": "util.json#/$defs/page"
				},
				"type": {
					"description": "- D: Discipline\n- T: Talent",
					"type": "string",
					"markdownDescription": "- D: Discipline\n- T: Talent",
					"enum": [
						"D",
						"T"
					]
				},
				"focus": {
					"type": "string"
				},
				"order": {
					"type": "string",
					"enum": [
						"Avatar",
						"Awakened",
						"Immortal",
						"Nomad",
						"Wu Jen"
					]
				},
				"modes": {
					"type": "array",
					"minItems": 1,
					"uniqueItems": true,
					"items": {
						"type": "object",
						"properties": {
							"cost": {
								"type": "object",
								"properties": {
									"min": {
										"type": "integer"
									},
									"max": {
										"type": "integer"
									}
								},
								"required": [
									"min",
									"max"
								],
								"additionalProperties": false
							},
							"concentration": {
								"type": "object",
								"properties": {
									"duration": {
										"type": "integer"
									},
									"unit": {
										"type": "string",
										"enum": [
											"hr",
											"min",
											"rnd"
										]
									}
								},
								"required": [
									"duration",
									"unit"
								],
								"additionalProperties": false
							},
							"name": {
								"type": "string"
							},
							"entries": {
								"type": "array",
								"items": {
									"$ref": "entry.json"
								}
							},
							"submodes": {
								"type": "array",
								"minItems": 1,
								"uniqueItems": true,
								"items": {
									"type": "object",
									"properties": {
										"cost": {
											"type": "object",
											"properties": {
												"min": {
													"type": "integer"
												},
												"max": {
													"type": "integer"
												}
											},
											"required": [
												"min",
												"max"
											],
											"additionalProperties": false
										},
										"name": {
											"type": "string"
										},
										"entries": {
											"type": "array",
											"uniqueItems": true,
											"items": {
												"$ref": "entry.json"
											}
										}
									},
									"required": [
										"cost",
										"name",
										"entries"
									],
									"additionalProperties": false
								}
							}
						},
						"required": [
							"name",
							"entries"
						],
						"additionalProperties": false
					}
				},
				"entries": {
					"type": "array",
					"uniqueItems": true,
					"items": {
						"$ref": "entry.json"
					}
				}
			},
			"additionalProperties": false
		},
		"psionic": {
			"anyOf": [
				{
					"type": "object",
					"properties": {
						"name": {
							"type": "string"
						},
						"source": {
							"$ref": "util.json#/$defs/source"
						},
						"page": {
							"$ref": "util.json#/$defs/page"
						},
						"type": {
							"description": "- D: Discipline\n- T: Talent",
							"type": "string",
							"markdownDescription": "- D: Discipline\n- T: Talent",
							"enum": [
								"D",
								"T"
							]
						},
						"focus": {
							"type": "string"
						},
						"order": {
							"type": "string",
							"enum": [
								"Avatar",
								"Awakened",
								"Immortal",
								"Nomad",
								"Wu Jen"
							]
						},
						"modes": {
							"type": "array",
							"minItems": 1,
							"uniqueItems": true,
							"items": {
								"type": "object",
								"properties": {
									"cost": {
										"type": "object",
										"properties": {
											"min": {
												"type": "integer"
											},
											"max": {
												"type": "integer"
											}
										},
										"required": [
											"min",
											"max"
										],
										"additionalProperties": false
									},
									"concentration": {
										"type": "object",
										"properties": {
											"duration": {
												"type": "integer"
											},
											"unit": {
												"type": "string",
												"enum": [
													"hr",
													"min",
													"rnd"
												]
											}
										},
										"required": [
											"duration",
											"unit"
										],
										"additionalProperties": false
									},
									"name": {
										"type": "string"
									},
									"entries": {
										"type": "array",
										"items": {
											"$ref": "entry.json"
										}
									},
									"submodes": {
										"type": "array",
										"minItems": 1,
										"uniqueItems": true,
										"items": {
											"type": "object",
											"properties": {
												"cost": {
													"type": "object",
													"properties": {
														"min": {
															"type": "integer"
														},
														"max": {
															"type": "integer"
														}
													},
													"required": [
														"min",
														"max"
													],
													"additionalProperties": false
												},
												"name": {
													"type": "string"
												},
												"entries": {
													"type": "array",
													"uniqueItems": true,
													"items": {
														"$ref": "entry.json"
													}
												}
											},
											"required": [
												"cost",
												"name",
												"entries"
											],
											"additionalProperties": false
										}
									}
								},
								"required": [
									"name",
									"entries"
								],
								"additionalProperties": false
							}
						},
						"entries": {
							"type": "array",
							"uniqueItems": true,
							"items": {
								"$ref": "entry.json"
							}
						}
					},
					"additionalProperties": false,
					"required": [
						"name",
						"source",
						"type"
					]
				},
				{
					"type": "object",
					"properties": {
						"name": {
							"type": "string"
						},
						"source": {
							"$ref": "util.json#/$defs/source"
						},
						"page": {
							"$ref": "util.json#/$defs/page"
						},
						"type": {
							"description": "- D: Discipline\n- T: Talent",
							"type": "string",
							"markdownDescription": "- D: Discipline\n- T: Talent",
							"enum": [
								"D",
								"T"
							]
						},
						"focus": {
							"type": "string"
						},
						"order": {
							"type": "string",
							"enum": [
								"Avatar",
								"Awakened",
								"Immortal",
								"Nomad",
								"Wu Jen"
							]
						},
						"modes": {
							"type": "array",
							"minItems": 1,
							"uniqueItems": true,
							"items": {
								"type": "object",
								"properties": {
									"cost": {
										"type": "object",
										"properties": {
											"min": {
												"type": "integer"
											},
											"max": {
												"type": "integer"
											}
										},
										"required": [
											"min",
											"max"
										],
										"additionalProperties": false
									},
									"concentration": {
										"type": "object",
										"properties": {
											"duration": {
												"type": "integer"
											},
											"unit": {
												"type": "string",
												"enum": [
													"hr",
													"min",
													"rnd"
												]
											}
										},
										"required": [
											"duration",
											"unit"
										],
										"additionalProperties": false
									},
									"name": {
										"type": "string"
									},
									"entries": {
										"type": "array",
										"items": {
											"$ref": "entry.json"
										}
									},
									"submodes": {
										"type": "array",
										"minItems": 1,
										"uniqueItems": true,
										"items": {
											"type": "object",
											"properties": {
												"cost": {
													"type": "object",
													"properties": {
														"min": {
															"type": "integer"
														},
														"max": {
															"type": "integer"
														}
													},
													"required": [
														"min",
														"max"
													],
													"additionalProperties": false
												},
												"name": {
													"type": "string"
												},
												"entries": {
													"type": "array",
													"uniqueItems": true,
													"items": {
														"$ref": "entry.json"
													}
												}
											},
											"required": [
												"cost",
												"name",
												"entries"
											],
											"additionalProperties": false
										}
									}
								},
								"required": [
									"name",
									"entries"
								],
								"additionalProperties": false
							}
						},
						"entries": {
							"type": "array",
							"uniqueItems": true,
							"items": {
								"$ref": "entry.json"
							}
						},
						"_copy": {
							"$ref": "util-copy.json#/$defs/copyBlock_copy_generic"
						}
					},
					"additionalProperties": false,
					"required": [
						"_copy"
					]
				}
			]
		}
	},
	"properties": {
		"_meta": {
			"$ref": "util.json#/$defs/metaBlock"
		},
		"psionic": {
			"type": "array",
			"minItems": 1,
			"uniqueItems": true,
			"items": {
				"$ref": "#/$defs/psionic"
			}
		}
	},
	"required": [
		"psionic"
	],
	"additionalProperties": false
}