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
I'm not sure where exactly something is going wrong, but it seems very likely that in some code path, we aren't explicitly checking for value == null. Related: #364
This is a breaking change we need to make with V4.
Investigative information
Please provide the following:
N/A - this issue is reproducible locally.
Repro steps
Provide the steps required to reproduce the problem:
Run the following Typescript function:
With the following
function.json
Run
func start
Hit the URL with 0 as the parameter:
curl <function-url>/api/periods/0
Output is:
Hit the URL with 1 as the parameter
curl <function-url>/api/periods/1
Output is:
Expected behavior
Format should be the same no matter what value is passed in.
Actual behavior
Format is integer literal for non-zero values (
id: 1
) and an object ({ ... }
) for zero values.Known workarounds
You can detect and respond in code, but that is ugly.
Related information
Provide any related information
Source
The text was updated successfully, but these errors were encountered: