From 435545a0db6bfe3b9f52d1fa2b0360537db88e5b Mon Sep 17 00:00:00 2001 From: indyandie <1058837+Indyandie@users.noreply.github.com> Date: Fri, 24 May 2024 01:24:15 -0500 Subject: [PATCH] fix(drf-spectacular): use correct type (`Tag Object`), add descriptions, URLs --- config/settings.py | 90 ++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 79 insertions(+), 11 deletions(-) diff --git a/config/settings.py b/config/settings.py index 41433fd5..812bba3e 100755 --- a/config/settings.py +++ b/config/settings.py @@ -165,16 +165,84 @@ Created by [**Paul Hallett**(]https://github.com/phalt) and other [**PokéAPI co "OAS_VERSION": "3.1.0", "COMPONENT_SPLIT_REQUEST": True, "TAGS": [ - "pokemon", - "evolution", - "berries", - "items", - "machines", - "location", - "contest", - "moves", - "encounters", - "games", - "utility", + { + "name": "pokemon", + "description": "Pokémon are the creatures that inhabit the world of the Pokémon games", + "externalDocs": { + "description": "Fine more info here", + "url": "https://bulbapedia.bulbagarden.net/wiki/Pok%C3%A9mon" + } + }, + { + "name": "evolution", + "description": "Evolution (Japanese: 進化 evolution) is a process in which a Pokémon changes into a different species of Pokémon.", + "externalDocs": { + "description": "Fine more info here", + "url": "https://bulbapedia.bulbagarden.net/wiki/Evolution" + } + }, + { + "name": "berries", + "description": "Berries (Japanese: きのみ Tree Fruit) are small, juicy, fleshy fruit. As in the real world, a large variety exists in the Pokémon world, with a large range of flavors and effects", + "externalDocs": { + "description": "Fine more info here", + "url": "https://bulbapedia.bulbagarden.net/wiki/Berry" + } + }, + { + "name": "items", + "description": "An item (Japanese: 道具 tool) is an object in the Pokémon games which the player can pick up, keep in their Bag, and use in some manner", + "externalDocs": { + "description": "Fine more info here", + "url": "https://bulbapedia.bulbagarden.net/wiki/Item" + } + }, + { + "name": "machines", + "description": "Machines are the representation of items that teach moves to Pokémon.", + "externalDocs": { + "description": "Fine more info here", + "url": "https://bulbapedia.bulbagarden.net/wiki/TM" + } + }, + { + "name": "location", + "description": "Locations that can be visited within the games", + "externalDocs": { + "description": "Fine more info here", + "url": "https://bulbapedia.bulbagarden.net/wiki/List_of_locations_by_index_number" + } + }, + { + "name": "contest", + "description": "Pokémon Contests (Japanese: ポケモンコンテスト Pokémon Contest) are a type of competition often contrasted with Pokémon battles and held in Contest Halls", + "externalDocs": { + "description": "Fine more info here", + "url": "https://bulbapedia.bulbagarden.net/wiki/Pok%C3%A9mon_Contest" + } + }, + { + "name": "moves", + "description": "A move (Japanese: わざ move), also known as an attack (Japanese: こうげきわざ attack technique) or technique (Japanese: とくしゅわざ special technique), is the skill Pokémon primarily use in battle.", + "externalDocs": { + "description": "Fine more info here", + "url": "https://bulbapedia.bulbagarden.net/wiki/List_of_locations_by_name" + + } + }, + { + "name": "encounters" + }, + { + "name": "games", + "description": "The Pokémon games are all video games in the Pokémon franchise.", + "externalDocs": { + "description": "Fine more info here", + "url": "https://bulbapedia.bulbagarden.net/wiki/Pok%C3%A9mon_games" + } + }, + { + "name": "utility" + }, ], }