Gaffer icon indicating copy to clipboard operation
Gaffer copied to clipboard

Make OperationDetails types more accurate

Open t92549 opened this issue 3 years ago • 0 comments

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

t92549 avatar Aug 11 '22 16:08 t92549