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
example: I'm unable to set session cookie.
protocol.json: { "name": "setCookie", "parameters": [ ..... { "name": "expirationDate", "$ref": "Timestamp", "optional": true, "description": "If omitted, the cookie becomes a session cookie." } ]...
(Timestamp is typedef for number)
resulting SetCookieCommand: /// <summary> /// Gets or sets If omitted, the cookie becomes a session cookie. /// </summary> [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public double ExpirationDate { get; set; }
^ double is not nullable thus the zero is sent instead of ommiting
The text was updated successfully, but these errors were encountered:
This may work if we can get the type of ExpirationDate to be double? instead of double.
It's been a while since I looked at the code, but since we already are capable of creating bool? I guess there's already some infrastructure in the generator which should help you fix this.
example: I'm unable to set session cookie.
protocol.json:
{ "name": "setCookie", "parameters": [ ..... { "name": "expirationDate", "$ref": "Timestamp", "optional": true, "description": "If omitted, the cookie becomes a session cookie." } ]...
(Timestamp is typedef for number)
resulting SetCookieCommand:
/// <summary> /// Gets or sets If omitted, the cookie becomes a session cookie. /// </summary> [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public double ExpirationDate { get; set; }
^ double is not nullable thus the zero is sent instead of ommiting
The text was updated successfully, but these errors were encountered: