Page MenuHomePhabricator

TemplateData: Param#deprecated field does not support boolean value
Closed, DeclinedPublic

Description

I tried to add template data for http://ko.wikipedia.org/w/index.php?title=%ED%8B%80:%EC%84%9C%EC%A0%81_%EC%9D%B8%EC%9A%A9/%EC%84%A4%EB%AA%85%EB%AC%B8%EC%84%9C&action=edit, while I wrote following text via TemplateDataEditor:
...

		"확인연도": {
			"deprecated": true,
			"description": "(해당 항목을 확인한 해)",
			"aliases":["accessyear"]
		},

...
And then the MediaWiki engine printed the following message and the data cannot be saved:
Property "params.확인연도.deprecated" is expected to be of type "boolean|string".

It was valid on JSON Lint. However, system does not seem to recognize boolean variable correctly.

Note: When I tried to enter string value, no problems arised. Therefore, the problem is boolean recognition.


Version: unspecified
Severity: major

Details

Reference
bz52676

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:02 AM
bzimport added a project: TemplateData.
bzimport set Reference to bz52676.

Though I intend to change this and documentation is not excellent, this is expected behaviour.

Deprecated is either boolean false (default) indicating that it isn't deprecated, or a string indicating why it is deprecated.

@property {boolean|string} [deprecated=false] Tooltip for the user
detailing the intent for the deprecated parameters. [1]

[1] https://raw.github.com/wikimedia/mediawiki-extensions-TemplateData/master/spec.templatedata.json