Skip to content

Commit db18ee2

Browse files
committed
chore: use the most recent spec
This is the output of npm run bundle-swagger in the api repository. The only manual change made after copying the file was removing the contents of the info.description field.
1 parent 4ce0bd8 commit db18ee2

File tree

1 file changed

+51
-39
lines changed

1 file changed

+51
-39
lines changed

openapi.json

Lines changed: 51 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -872,22 +872,22 @@
872872
"content": {
873873
"application/json": {
874874
"schema": {
875-
"$ref": "#/components/schemas/APIReferenceList"
875+
"$ref": "#/components/schemas/ClassSpellList"
876876
},
877877
"example": {
878878
"count": 2,
879879
"results": [
880880
{
881881
"index": "power-word-kill",
882-
"level": 9,
883882
"name": "Power Word Kill",
884-
"url": "/api/spells/power-word-kill"
883+
"url": "/api/spells/power-word-kill",
884+
"level": 9
885885
},
886886
{
887887
"index": "true-polymorph",
888-
"level": 9,
889888
"name": "True Polymorph",
890-
"url": "/api/spells/true-polymorph"
889+
"url": "/api/spells/true-polymorph",
890+
"level": 9
891891
}
892892
]
893893
}
@@ -1250,31 +1250,26 @@
12501250
"results": [
12511251
{
12521252
"index": "dominate-monster",
1253-
"level": 8,
12541253
"name": "Dominate Monster",
12551254
"url": "/api/spells/dominate-monster"
12561255
},
12571256
{
12581257
"index": "earthquake",
1259-
"level": 8,
12601258
"name": "Earthquake",
12611259
"url": "/api/spells/earthquake"
12621260
},
12631261
{
12641262
"index": "incendiary-cloud",
1265-
"level": 8,
12661263
"name": "Incendiary Cloud",
12671264
"url": "/api/spells/incendiary-cloud"
12681265
},
12691266
{
12701267
"index": "power-word-stun",
1271-
"level": 8,
12721268
"name": "Power Word Stun",
12731269
"url": "/api/spells/power-word-stun"
12741270
},
12751271
{
12761272
"index": "sunburst",
1277-
"level": 8,
12781273
"name": "Sunburst",
12791274
"url": "/api/spells/sunburst"
12801275
}
@@ -1854,6 +1849,7 @@
18541849
}
18551850
],
18561851
"challenge_rating": 10,
1852+
"proficiency_bonus": 4,
18571853
"charisma": 18,
18581854
"condition_immunities": [],
18591855
"constitution": 15,
@@ -2502,7 +2498,6 @@
25022498
],
25032499
"spell": {
25042500
"index": "burning-hands",
2505-
"level" : 1,
25062501
"name": "Burning Hands",
25072502
"url": "/api/spells/burning-hands"
25082503
}
@@ -2518,7 +2513,6 @@
25182513
],
25192514
"spell": {
25202515
"index": "command",
2521-
"level": 1,
25222516
"name": "Command",
25232517
"url": "/api/spells/command"
25242518
}
@@ -2534,7 +2528,6 @@
25342528
],
25352529
"spell": {
25362530
"index": "blindness-deafness",
2537-
"level":2,
25382531
"name": "Blindness/Deafness",
25392532
"url": "/api/spells/blindness-deafness"
25402533
}
@@ -2550,7 +2543,6 @@
25502543
],
25512544
"spell": {
25522545
"index": "scorching-ray",
2553-
"level": 2,
25542546
"name": "Scorching Ray",
25552547
"url": "/api/spells/scorching-ray"
25562548
}
@@ -2566,7 +2558,6 @@
25662558
],
25672559
"spell": {
25682560
"index": "fireball",
2569-
"level": 3,
25702561
"name": "Fireball",
25712562
"url": "/api/spells/fireball"
25722563
}
@@ -2582,7 +2573,6 @@
25822573
],
25832574
"spell": {
25842575
"index": "stinking-cloud",
2585-
"level": 3,
25862576
"name": "Stinking Cloud",
25872577
"url": "/api/spells/stinking-cloud"
25882578
}
@@ -2598,7 +2588,6 @@
25982588
],
25992589
"spell": {
26002590
"index": "fire-shield",
2601-
"level": 4,
26022591
"name": "Fire Shield",
26032592
"url": "/api/spells/fire-shield"
26042593
}
@@ -2614,7 +2603,6 @@
26142603
],
26152604
"spell": {
26162605
"index": "wall-of-fire",
2617-
"level": 4,
26182606
"name": "Wall of Fire",
26192607
"url": "/api/spells/wall-of-fire"
26202608
}
@@ -2630,7 +2618,6 @@
26302618
],
26312619
"spell": {
26322620
"index": "flame-strike",
2633-
"level": 5,
26342621
"name": "Flame Strike",
26352622
"url": "/api/spells/flame-strike"
26362623
}
@@ -2646,7 +2633,6 @@
26462633
],
26472634
"spell": {
26482635
"index": "hallow",
2649-
"level": 5,
26502636
"name": "Hallow",
26512637
"url": "/api/spells/hallow"
26522638
}
@@ -3616,10 +3602,6 @@
36163602
"description": "Resource index for shorthand searching.",
36173603
"type": "string"
36183604
},
3619-
"level": {
3620-
"description": "Level of the referenced resource.",
3621-
"type": "integer"
3622-
},
36233605
"name": {
36243606
"description": "Name of the referenced resource.",
36253607
"type": "string"
@@ -4160,6 +4142,10 @@
41604142
{
41614143
"type": "object",
41624144
"properties": {
4145+
"image": {
4146+
"description": "The image url of the magic item.",
4147+
"type": "string"
4148+
},
41634149
"equipment_category": {
41644150
"$ref": "#/components/schemas/APIReference"
41654151
},
@@ -5392,22 +5378,9 @@
53925378
"description": "The sub-category of a monster used for classification of monsters.\"",
53935379
"type": "string"
53945380
},
5395-
"alignments": {
5381+
"alignment": {
53965382
"description": "A creature's general moral and personal attitudes.",
5397-
"type": "string",
5398-
"enum": [
5399-
"chaotic neutral",
5400-
"chaotic evil",
5401-
"chaotic good",
5402-
"lawful neutral",
5403-
"lawful evil",
5404-
"lawful good",
5405-
"neutral",
5406-
"neutral evil",
5407-
"neutral good",
5408-
"any alignment",
5409-
"unaligned"
5410-
]
5383+
"type": "string"
54115384
},
54125385
"armor_class": {
54135386
"description": "The difficulty for a player to successfully deal damage to a monster.",
@@ -5448,6 +5421,12 @@
54485421
"minimum": 0,
54495422
"maximum": 21
54505423
},
5424+
"proficiency_bonus": {
5425+
"description": "A monster's proficiency bonus is the number added to ability checks, saving throws and attack rolls in which the monster is proficient, and is linked to the monster's challenge rating. This bonus has already been included in the monster's stats where applicable.",
5426+
"type": "number",
5427+
"minimum": 2,
5428+
"maximum": 9
5429+
},
54515430
"condition_immunities": {
54525431
"description": "A list of conditions that a monster is immune to.",
54535432
"type": "array",
@@ -6184,6 +6163,39 @@
61846163
}
61856164
}
61866165
]
6166+
},
6167+
"ClassLevelSpell": {
6168+
"description": "`ClassLevelSpell`\n",
6169+
"allOf": [
6170+
{
6171+
"$ref": "#/components/schemas/APIReference"
6172+
},
6173+
{
6174+
"type": "object",
6175+
"properties": {
6176+
"level": {
6177+
"type": "number",
6178+
"description": "The level of the spell slot used to cast the spell."
6179+
}
6180+
}
6181+
}
6182+
]
6183+
},
6184+
"ClassSpellList": {
6185+
"description": "`ClassSpellList`\n",
6186+
"type": "object",
6187+
"properties": {
6188+
"count": {
6189+
"description": "Total number of resources available.",
6190+
"type": "number"
6191+
},
6192+
"results": {
6193+
"type": "array",
6194+
"items": {
6195+
"$ref": "#/components/schemas/ClassLevelSpell"
6196+
}
6197+
}
6198+
}
61876199
}
61886200
}
61896201
}

0 commit comments

Comments
 (0)