-
Notifications
You must be signed in to change notification settings - Fork 11
Description
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
PositionSidedefinition,TradeIdsis defined as array of objects instead of array of strings
https://github.com/oanda/v20-openapi/blob/master/json/v20.json#L5125
should be: "type": "string",
instead of: "$ref": "#/definitions/TradeID" -
relatedTransactionIDsandclosingTransactionIDsare defined as arrays of objects instead of arrays of strings
https://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" -
OrderPositionFillenum
https://github.com/oanda/v20-openapi/blob/master/json/v20.json#L3464
should be: POSITION_DEFAULT
instead of: DEFAULT
(also need to update all usages) -
OrderTriggerConditionenum
https://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