|
2 | 2 |
|
3 | 3 | from odictliteral import odict |
4 | 4 |
|
| 5 | +# noinspection DuplicatedCode |
5 | 6 | COMMON_MODELS: OrderedDict = odict[ |
6 | | - f"/schema/v2/api_resource.json":{ |
| 7 | + "/schema/v2/api_resource.json":{ |
7 | 8 | "properties": {"url": {"type": "string"}}, |
8 | 9 | "required": ["url"], |
9 | 10 | "type": "object", |
10 | 11 | }, |
11 | | - f"/schema/v2/named_api_resource.json":{ |
| 12 | + "/schema/v2/named_api_resource.json":{ |
12 | 13 | "properties": {"name": {"type": "string"}, "url": {"type": "string"}}, |
13 | 14 | "required": ["name", "url"], |
14 | 15 | "type": "object", |
15 | 16 | }, |
16 | | - f"/schema/v2/api_resource_list.json":{ |
| 17 | + "/schema/v2/api_resource_list.json":{ |
17 | 18 | "properties": { |
18 | 19 | "count": {"type": "integer"}, |
19 | 20 | "next": {"type": "null"}, |
|
26 | 27 | "required": ["count", "next", "previous", "results"], |
27 | 28 | "type": "object", |
28 | 29 | }, |
29 | | - f"/schema/v2/named_api_resource_list.json":{ |
| 30 | + "/schema/v2/named_api_resource_list.json":{ |
30 | 31 | "properties": { |
31 | 32 | "count": {"type": "integer"}, |
32 | 33 | "next": {"type": "null"}, |
|
39 | 40 | "required": ["count", "next", "previous", "results"], |
40 | 41 | "type": "object", |
41 | 42 | }, |
| 43 | + "/schema/v2/description.json":{ |
| 44 | + "properties": { |
| 45 | + "description": {"type": "string"}, |
| 46 | + "language": {"$ref": f"/schema/v2/named_api_resource.json"}, |
| 47 | + }, |
| 48 | + "required": ["description", "language"], |
| 49 | + "type": "object", |
| 50 | + }, |
| 51 | + "/schema/v2/effect.json":{ |
| 52 | + "properties": { |
| 53 | + "effect": {"type": "string"}, |
| 54 | + "language": {"$ref": f"/schema/v2/named_api_resource.json"}, |
| 55 | + }, |
| 56 | + "required": ["effect", "language"], |
| 57 | + "type": "object", |
| 58 | + }, |
| 59 | + "/schema/v2/encounter.json":{ |
| 60 | + "properties": { |
| 61 | + "chance": {"type": "integer"}, |
| 62 | + "condition_values": { |
| 63 | + "items": {"$ref": f"/schema/v2/named_api_resource.json"}, |
| 64 | + "type": "array", |
| 65 | + }, |
| 66 | + "max_level": {"type": "integer"}, |
| 67 | + "method": {"$ref": f"/schema/v2/named_api_resource.json"}, |
| 68 | + "min_level": {"type": "integer"}, |
| 69 | + }, |
| 70 | + "required": ["chance", "condition_values", "max_level", "method", "min_level"], |
| 71 | + "type": "object", |
| 72 | + }, |
| 73 | + "/schema/v2/flavor_text.json":{ |
| 74 | + "properties": { |
| 75 | + "flavor_text": {"type": "string"}, |
| 76 | + "language": {"$ref": f"/schema/v2/named_api_resource.json"}, |
| 77 | + }, |
| 78 | + "required": ["flavor_text", "language"], |
| 79 | + "type": "object", |
| 80 | + }, |
| 81 | + "/schema/v2/generation_game_index.json":{ |
| 82 | + "properties": { |
| 83 | + "game_index": {"type": "integer"}, |
| 84 | + "generation": {"$ref": f"/schema/v2/named_api_resource.json"}, |
| 85 | + }, |
| 86 | + "required": ["game_index", "generation"], |
| 87 | + "type": "object", |
| 88 | + }, |
| 89 | + "/schema/v2/machine_version_detail.json":{ |
| 90 | + "properties": { |
| 91 | + "machine": {"$ref": f"/schema/v2/api_resource.json"}, |
| 92 | + "version_group": {"$ref": f"/schema/v2/named_api_resource.json"}, |
| 93 | + }, |
| 94 | + "required": ["machine", "version_group"], |
| 95 | + "type": "object", |
| 96 | + }, |
| 97 | + "/schema/v2/name.json":{ |
| 98 | + "properties": { |
| 99 | + "language": {"$ref": f"/schema/v2/named_api_resource.json"}, |
| 100 | + "name": {"type": "string"}, |
| 101 | + }, |
| 102 | + "required": ["language", "name"], |
| 103 | + "type": "object", |
| 104 | + }, |
| 105 | + "/schema/v2/verbose_effect.json":{ |
| 106 | + "properties": { |
| 107 | + "effect": {"type": "string"}, |
| 108 | + "language": {"$ref": f"/schema/v2/named_api_resource.json"}, |
| 109 | + "short_effect": {"type": "string"}, |
| 110 | + }, |
| 111 | + "required": ["effect", "language", "short_effect"], |
| 112 | + "type": "object", |
| 113 | + }, |
| 114 | + "/schema/v2/version_encounter_detail.json":{ |
| 115 | + "properties": { |
| 116 | + "encounter_details": { |
| 117 | + "items": {"$ref": "/schema/v2/encounter.json"}, |
| 118 | + "type": "array", |
| 119 | + }, |
| 120 | + "max_chance": {"type": "integer"}, |
| 121 | + "version": {"$ref": "/schema/v2/named_api_resource.json"}, |
| 122 | + }, |
| 123 | + "required": ["encounter_details", "max_chance", "version"], |
| 124 | + "type": "object", |
| 125 | + }, |
| 126 | + "/schema/v2/version_game_index.json":{ |
| 127 | + "properties": { |
| 128 | + "game_index": {"type": "integer"}, |
| 129 | + "version": {"$ref": f"/schema/v2/named_api_resource.json"}, |
| 130 | + }, |
| 131 | + "required": ["game_index", "version"], |
| 132 | + "type": "object", |
| 133 | + }, |
| 134 | + "/schema/v2/version_group_flavor_text.json":{ |
| 135 | + "properties": { |
| 136 | + "language": {"$ref": "/schema/v2/named_api_resource.json"}, |
| 137 | + "text": {"type": "string"}, |
| 138 | + "version_group": {"$ref": "/schema/v2/named_api_resource.json"}, |
| 139 | + }, |
| 140 | + "required": ["language", "text", "version_group"], |
| 141 | + "type": "object", |
| 142 | + }, |
42 | 143 | ] |
0 commit comments