Merge "api: Specify PARAM_TYPE => 'text' for multi-line text parameters"

This commit is contained in:
jenkins-bot 2020-06-10 21:51:37 +00:00 committed by Gerrit Code Review
commit 20da05e8c3
2 changed files with 12 additions and 3 deletions

View file

@ -667,7 +667,10 @@ class ApiVisualEditor extends ApiBase {
'parsedoc',
],
],
'wikitext' => null,
'wikitext' => [
ApiBase::PARAM_TYPE => 'text',
ApiBase::PARAM_DFLT => null,
],
'section' => null,
'stash' => null,
'oldid' => null,

View file

@ -478,7 +478,10 @@ class ApiVisualEditorEdit extends ApiBase {
'token' => [
ApiBase::PARAM_REQUIRED => true,
],
'wikitext' => null,
'wikitext' => [
ApiBase::PARAM_TYPE => 'text',
ApiBase::PARAM_DFLT => null,
],
'section' => null,
'sectiontitle' => null,
'basetimestamp' => null,
@ -486,7 +489,10 @@ class ApiVisualEditorEdit extends ApiBase {
'oldid' => null,
'minor' => null,
'watchlist' => null,
'html' => null,
'html' => [
ApiBase::PARAM_TYPE => 'text',
ApiBase::PARAM_DFLT => null,
],
'etag' => null,
'summary' => null,
'captchaid' => null,