CityOfBoston / CityWorker-issues-Incapsulate

Archived for legacy purposes
0 stars 0 forks source link

Attribute with string datatype should not contain values #137

Closed jqr closed 4 years ago

jqr commented 5 years ago

Some Attributes with datatype=string contain values which is not defined behavior. Normally the values field is how singlevaluelist and multivaluelist are given their choices. Providing this for strings is meaningless and seems to indicate a problem.

What does it mean for a string to have values? Is this an attempt at providing autocomplete behavior?

Example

This is presently happening with the CROSSMETER3 Attribute in LEADPNT.

{
  "required": false,
  "datatype": "string",
  "datatype_description": null,
  "order": 4,
  "description": "Occupants name and contact information (phone number, email, etc.)",
  "code": "CROSSMETER3",
  "variable": true,
  "values": [
    {
      "dependentOn": {
        "clause": "OR",
        "conditions": [
          {
            "attribute": "OVERCROWDED4",
            "op": "eq",
            "value": "No"
          }
        ]
      }
    }
  ]
}