diff options
author | Thiemo Kreuz <thiemo.kreuz@wikimedia.de> | 2022-01-12 13:23:04 +0100 |
---|---|---|
committer | Gerrit Code Review <gerrit@wikimedia.org> | 2022-01-12 12:23:04 +0000 |
commit | 2f3fcfa8e4e05f9e498d1b967d09c8a2a4306f6f (patch) | |
tree | ed4a8082a4a313101994934523c0b9eafed77991 | |
parent | 3ef071e85bc55bae53e9ef6829122eceb5a0d993 (diff) |
Update git submodules
* Update extensions/TemplateData from branch 'wmf/1.38.0-wmf.17'
to dccfd7096e6d3e2fd83e0b03a1d458039f168710
- Allow aliases to be integers in addition to strings
Parameter names in a template can be numeric. While it makes a lot of
sense to force a specific format in the TemplateData JSON (i.e. only
strings), it's inconvenient and confusing if numbers are rejected for
being "invalid".
Effects of this patch:
* The incoming JSON is allowed to contain numbers in the aliases
array.
* However, the API normalizes these and forces all aliases to be
strings, as it was always documented.
* The editor component accepts anything in the aliases array, but
forces all aliases to be strings. Again, as documented.
* Note that it was never possible to use numeric keys in the `params`
list. This patch is only about aliases.
At the moment this is a somewhat "hidden" feature. We might or might
not update the documentation to officially allow numeric aliases.
Bug: T298795
Change-Id: I32ea296b4520e7f21b03a1f6390db4f43b613bdd
m--------- | extensions/TemplateData | 0 |
1 files changed, 0 insertions, 0 deletions
diff --git a/extensions/TemplateData b/extensions/TemplateData -Subproject e296c87ad2825cf40d57871cc636354f674522d +Subproject dccfd7096e6d3e2fd83e0b03a1d458039f16871 |