tracker issue : CF-3400761

select a category, or use search below
(searches all categories and all time range)

isValid has incorrect documentation

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): duncan cumming / duncan cumming (duncancumming)

Created: 12/07/2012

Components: Documentation

Versions: 9.0.1

Failure Type:

Found In Build/Fixed In Build: 9.0.1 /

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Windows 7

Vote Count: 1

Problem Description:
isValid documentation ( has 'maxlength' as one of the possible values for the 'type' attribute.  However that doesn't work, and throws an error.

It's also unclear how any 'maxlength' type would work, as there's no documented means of passing the acceptable maxlength value.  There is a 'max' attribute, but that only works with the 'range' type.

Steps to Reproduce:
isValid("maxlength", "foobar")

Actual Result:
Valid type arguments are: any, array, Boolean, date, numeric, query, string, struct, UUID, GUID, binary, integer, float, eurodate, time, creditcard, email, ssn, telephone, zipcode, url, regex, range , component, and variableName. 

Expected Result:
???  Presumably a boolean value, but without specifying what the actual maxlength is meant to be, no idea how that would be decided.

Any Workarounds:

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3400761

External Customer Info:
External Company:  
External Customer Name: duncancumming
External Customer Email:  
External Test Config: My Hardware and Environment details:



+1. If you're going to claim the language does something, it needs to actually be able to do it. -- Adam
Vote by External U.
17009 | December 07, 2012 04:57:51 AM GMT
Maxlength would be nice if it worked.
Comment by External U.
17007 | October 13, 2013 03:40:36 PM GMT
maxlength is not a supported attribute. Removed this from the doc.
Comment by Frank J.
17008 | May 06, 2014 05:41:38 AM GMT