Skip to main content

DifferentTypesInOperationError

Operations with different types (like adding a price to a volume) are not allowed.

typestringrequired
Constant value: different_types
Default value: different_types
location objectrequired

Location of the error in the formula. If none, the parser wasn't able to locate the position of the error.

anyOf

Represents the location of an error in a formula.

startPosintegerrequired

Start position of the error in the formula.

Possible values: >= 0

endPosintegerrequired

End position of the error in the formula.

Possible values: >= 1

operatorstringrequired

The operator that caused the error.

typesstring[]required

All types of the operation raising the error.

Possible values: [volume, price, volume_based_price, boolean, number, text]

DifferentTypesInOperationError
{
"type": "different_types",
"location": {
"startPos": 0,
"endPos": 0
},
"operator": "string",
"types": [
"volume"
]
}