Gaffer
Gaffer copied to clipboard
Make OperationDetails types more accurate
Currently, OperationDetails will return an operation's parameters and their types. However, some operation's parameters are listed as Object[] due to multiple setters for serialisation.
For example, the input parameter from GetElements:
{
"name": "input",
"className": "java.lang.Object[]",
"required": false
}
The className should be "uk.gov.gchq.gaffer.data.element.Element[]"
Note, this happens with GetElements and not AddElements due to MultiElementIdInput, so this class could be changed.
Alternatively, OperationDetail to account for this.
This is needed for https://github.com/gchq/gaffer-tools/issues/1023 and https://github.com/gchq/gaffer-tools/issues/1022