From 9722f7547aa10b4b7b8ec19747db7ae929a9af8b Mon Sep 17 00:00:00 2001 From: tr4nt0r <4445816+tr4nt0r@users.noreply.github.com> Date: Fri, 25 Oct 2024 15:27:39 +0200 Subject: [PATCH] Fix fields not marked as optional im apidoc --- website/server/controllers/api-v3/members.js | 4 ++-- website/server/controllers/api-v3/user/spells.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/website/server/controllers/api-v3/members.js b/website/server/controllers/api-v3/members.js index 997ac57b2f3..de9455fa4a9 100644 --- a/website/server/controllers/api-v3/members.js +++ b/website/server/controllers/api-v3/members.js @@ -377,12 +377,12 @@ function _getMembersForItem (type) { * @apiGroup Member * * @apiParam (Path) {UUID} groupId The group id ('party' for the user party is accepted) - * @apiParam (Query) {UUID} lastId Query parameter to specify the last member + * @apiParam (Query) {UUID} [lastId] Query parameter to specify the last member * returned in a previous request to this route and * get the next batch of results. * @apiParam (Query) {Number} limit=30 BETA Query parameter * to specify the number of results to return. Max is 60. - * @apiParam (Query) {Boolean} includeAllPublicFields If set to `true` + * @apiParam (Query) {Boolean} [includeAllPublicFields] If set to `true` * then all public fields for members * will be returned (similar to when making * a request for a single member). diff --git a/website/server/controllers/api-v3/user/spells.js b/website/server/controllers/api-v3/user/spells.js index 91b08acd51b..b31047244a7 100644 --- a/website/server/controllers/api-v3/user/spells.js +++ b/website/server/controllers/api-v3/user/spells.js @@ -17,7 +17,7 @@ const api = {}; * valorousPresence, intimidate, pickPocket, backStab, toolsOfTrade, * stealth, heal, protectAura, brightness, healAll, * snowball, spookySparkles, seafoam, shinySeed} spellId The skill to cast. - * @apiParam (Query) {UUID} targetId Query parameter, necessary if the spell is + * @apiParam (Query) {UUID} [targetId] Query parameter, necessary if the spell is * cast on a party member or task. Not used if the spell * is casted on the user or the user's current party. * @apiParamExample {json} Query example: