Page 1 of 1

Bug? 0 maxLength for countryCode and countryName on meta/Candidate - 02281005

Posted: Sat Jul 02, 2016 12:04 am
by max_max_mir
The maxLength for countryCode and countryName is 0 for the metadata on Candidate.Address. Is there a reason for this, or is this a bug?

Code: Select all

{u'dataType': u'String',
                           u'maxLength': 0,
                           u'name': u'countryCode',
                           u'type': u'SCALAR'},
                          {u'dataType': u'String',
                           u'maxLength': 0,
                           u'name': u'countryName',
                           u'type': u'SCALAR'}],

Re: Bug? 0 maxLength for countryCode and countryName on meta/Candidate

Posted: Tue Jul 05, 2016 10:34 am
by s.hayes
Hello,
These fields are meant to return that way when searching meta because they are read only and cannot be modified via the API. This is why the maxLength returns as 0.

Re: Bug? 0 maxLength for countryCode and countryName on meta/Candidate - 02281005

Posted: Wed Jul 06, 2016 4:41 pm
by max_max_mir
Thanks for the clarification Sean. I am not sure how anyone would infer that a 0 length field means that it is not editable - unless this is standard JSON format (I haven't read about it, but I could be wrong)? I think a better way to deal with this is to actually have the length of the field be what it returns and have a separate field about it being editable or not. Just a thought.