/** * (boolean) Inverse of IntegerDef::PARAM_IGNORE_RANGE * @deprecated since 1.35 */ public const PARAM_RANGE_ENFORCE = 'api-param-range-enforce';
It's unclear what this deprecated constant should be replaced with
/** * (boolean) Inverse of IntegerDef::PARAM_IGNORE_RANGE * @deprecated since 1.35 */ public const PARAM_RANGE_ENFORCE = 'api-param-range-enforce';
It's unclear what this deprecated constant should be replaced with
The default behaviour of IntegerDef (or every NumericDef) is now to enforce the range, so this should be removed. For every integer with a min or max value and without that option, the IGNORE_RANGE needs to be set.
https://gerrit.wikimedia.org/r/c/mediawiki/core/+/434718/19/RELEASE-NOTES-1.35#154
https://gerrit.wikimedia.org/r/c/mediawiki/core/+/434718/19/includes/api/Validator/ApiParamValidator.php#112