John McCabe created BROOKLYN-254:
------------------------------------
Summary: Setting the type in an effector parameter always returns
java.lang.Object
Key: BROOKLYN-254
URL: https://issues.apache.org/jira/browse/BROOKLYN-254
Project: Brooklyn
Issue Type: Bug
Reporter: John McCabe
Priority: Minor
Setting the type property in an effector parameter always results in a
{{java.lang.Object}} being returned, for example:
{code}
parameters:
LOGGING:
label: Enable logging
type: java.lang.Boolean
description: Control whether to enable/disable logging
defaultValue: true
{code}
Returns {{java.lang.Object}} in response to the
{{applications/<appid>/entities/<entityid>/effectors}} request:
{code}
{
"name": "myEffector",
"returnType": "java.lang.String",
"parameters": [
{
"name": "LOGGING",
"type": "java.lang.Object",
"description": "Control whether to enable/disable logging\n",
"defaultValue": true
}
],
"description": "My Test Effector",
"links": {
"self":
"/v1/applications/HiAYKP2W/entities/cvgDGOLN/effectors/myEffector",
"entity": "/v1/applications/HiAYKP2W/entities/cvgDGOLN",
"application": "/v1/applications/HiAYKP2W"
}
},
{code}
This results in the UI failing to render a checkbox in this case.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)