|
872 | 872 | "content": { |
873 | 873 | "application/json": { |
874 | 874 | "schema": { |
875 | | - "$ref": "#/components/schemas/APIReferenceList" |
| 875 | + "$ref": "#/components/schemas/ClassSpellList" |
876 | 876 | }, |
877 | 877 | "example": { |
878 | 878 | "count": 2, |
|
1251 | 1251 | { |
1252 | 1252 | "index": "dominate-monster", |
1253 | 1253 | "name": "Dominate Monster", |
1254 | | - "url": "/api/spells/dominate-monster", |
1255 | | - "level": 8 |
| 1254 | + "url": "/api/spells/dominate-monster" |
1256 | 1255 | }, |
1257 | 1256 | { |
1258 | 1257 | "index": "earthquake", |
1259 | 1258 | "name": "Earthquake", |
1260 | | - "url": "/api/spells/earthquake", |
1261 | | - "level": 8 |
| 1259 | + "url": "/api/spells/earthquake" |
1262 | 1260 | }, |
1263 | 1261 | { |
1264 | 1262 | "index": "incendiary-cloud", |
1265 | 1263 | "name": "Incendiary Cloud", |
1266 | | - "url": "/api/spells/incendiary-cloud", |
1267 | | - "level": 8 |
| 1264 | + "url": "/api/spells/incendiary-cloud" |
1268 | 1265 | }, |
1269 | 1266 | { |
1270 | 1267 | "index": "power-word-stun", |
1271 | 1268 | "name": "Power Word Stun", |
1272 | | - "url": "/api/spells/power-word-stun", |
1273 | | - "level": 8 |
| 1269 | + "url": "/api/spells/power-word-stun" |
1274 | 1270 | }, |
1275 | 1271 | { |
1276 | 1272 | "index": "sunburst", |
1277 | 1273 | "name": "Sunburst", |
1278 | | - "url": "/api/spells/sunburst", |
1279 | | - "level": 8 |
| 1274 | + "url": "/api/spells/sunburst" |
1280 | 1275 | } |
1281 | 1276 | ] |
1282 | 1277 | } |
|
6178 | 6173 | } |
6179 | 6174 | } |
6180 | 6175 | ] |
| 6176 | + }, |
| 6177 | + "ClassLevelSpell": { |
| 6178 | + "description": "`ClassLevelSpell`\n", |
| 6179 | + "allOf": [ |
| 6180 | + { |
| 6181 | + "$ref": "#/components/schemas/APIReference" |
| 6182 | + }, |
| 6183 | + { |
| 6184 | + "type": "object", |
| 6185 | + "properties": { |
| 6186 | + "level": { |
| 6187 | + "type": "number", |
| 6188 | + "description": "The level of the spell slot used to cast the spell." |
| 6189 | + } |
| 6190 | + } |
| 6191 | + } |
| 6192 | + ] |
| 6193 | + }, |
| 6194 | + "ClassSpellList": { |
| 6195 | + "description": "`ClassSpellList`\n", |
| 6196 | + "type": "object", |
| 6197 | + "properties": { |
| 6198 | + "count": { |
| 6199 | + "description": "Total number of resources available.", |
| 6200 | + "type": "number" |
| 6201 | + }, |
| 6202 | + "results": { |
| 6203 | + "type": "array", |
| 6204 | + "items": { |
| 6205 | + "$ref": "#/components/schemas/ClassLevelSpell" |
| 6206 | + } |
| 6207 | + } |
| 6208 | + } |
6181 | 6209 | } |
6182 | 6210 | } |
6183 | 6211 | } |
|
0 commit comments