You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a follow-up to my previous issue (#1), I found a few errors in the JSON spec I am using to generate C# bindings. Without the following changes, deserialization errors occurred at runtime.
As a follow-up to my previous issue (#1), I found a few errors in the JSON spec I am using to generate C# bindings. Without the following changes, deserialization errors occurred at runtime.
In
PositionSide
definition,TradeIds
is defined as array of objects instead of array of stringshttps://github.com/oanda/v20-openapi/blob/master/json/v20.json#L5125
should be: "type": "string",
instead of: "$ref": "#/definitions/TradeID"
relatedTransactionIDs
andclosingTransactionIDs
are defined as arrays of objects instead of arrays of stringshttps://github.com/oanda/v20-openapi/blob/master/json/v20.json#L480
https://github.com/oanda/v20-openapi/blob/master/json/v20.json#L11731
https://github.com/oanda/v20-openapi/blob/master/json/v20.json#L11820
should be: "type": "string",
instead of: "$ref": "#/definitions/TransactionID"
OrderPositionFill
enumhttps://github.com/oanda/v20-openapi/blob/master/json/v20.json#L3464
should be: POSITION_DEFAULT
instead of: DEFAULT
(also need to update all usages)
OrderTriggerCondition
enumhttps://github.com/oanda/v20-openapi/blob/master/json/v20.json#L3471
should be: TRIGGER_DEFAULT
instead of: DEFAULT
(also need to update all usages)
This is the modified JSON file I used for generation: v20.zip
The text was updated successfully, but these errors were encountered: