cyREST icon indicating copy to clipboard operation
cyREST copied to clipboard

Visual Properties outputs are inconsistent

Open dotasek opened this issue 7 years ago • 0 comments

GET /v1/styles/visualproperties/{visualProperty} returns:

{
  "visualProperty": "EDGE_LABEL_WIDTH",
  "name": "Edge Label Width",
  "targetDataType": "CyEdge",
  "default": "200.0"
}

Whereas, GET /v1/styles/{name}/defaults/{vp} and GET /v1/styles/{name}/defaults both use the format:

{
  "visualProperty": "EDGE_LABEL_WIDTH",
  "value": 200
}

dotasek avatar Jan 15 '18 20:01 dotasek