aboutsummaryrefslogtreecommitdiffstats
path: root/includes/Rest/Handler
diff options
context:
space:
mode:
authorfrankie <fgoodwin@wikimedia.org>2024-11-06 17:43:30 -0500
committerfrankie <fgoodwin@wikimedia.org>2024-11-26 11:46:09 -0500
commit20f936d9429f73dbe40de0b46debe1c11761c5ca (patch)
tree7548df22259a7aebe60bd6bacdb589704c32120c /includes/Rest/Handler
parent4dcee7bb9bc7fc7bda24e5762564485c8c29388f (diff)
downloadmediawikicore-20f936d9429f73dbe40de0b46debe1c11761c5ca.tar.gz
mediawikicore-20f936d9429f73dbe40de0b46debe1c11761c5ca.zip
T376493: Specify REST parameters as MessageValue objects
Parameter descriptions are currently parsed as strings. Using a MessageValue object instead will allow for OpenAPI specs to be internationalizable. Bug: T376493 Change-Id: Ia2991f196c6d9b0810181f907f0a048393cddad9
Diffstat (limited to 'includes/Rest/Handler')
-rw-r--r--includes/Rest/Handler/UpdateHandler.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/Rest/Handler/UpdateHandler.php b/includes/Rest/Handler/UpdateHandler.php
index 208010e19cb6..b2b39f28c71d 100644
--- a/includes/Rest/Handler/UpdateHandler.php
+++ b/includes/Rest/Handler/UpdateHandler.php
@@ -49,6 +49,7 @@ class UpdateHandler extends EditHandler {
self::PARAM_SOURCE => 'path',
ParamValidator::PARAM_TYPE => 'string',
ParamValidator::PARAM_REQUIRED => true,
+ self::PARAM_DESCRIPTION => new MessageValue( 'rest-param-desc-update-title' ),
],
] + parent::getParamSettings();
}