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
{{ message }}
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.
Describe the bug
When serializing values of type Range as returned by a function or operation, the serializer expands the Range into an array of its values:
This is confirmed by looking at the raw JSON saved to the notebook:
Range implements IEnumerable, which is why it gets its items serialized. This should be fixed if we add the JsonObject to the class Range , but that would be in qsharp-runtime
Describe the bug
When serializing values of type
Range
as returned by a function or operation, the serializer expands theRange
into an array of its values:This is confirmed by looking at the raw JSON saved to the notebook:
This makes it impossible to directly call a function or operation that expects a
Range
as its input from the Python client.Expected behavior
Range
should serialize and deserialize into a JSON schema that is distinct from the JSON schema forInt[]
.The text was updated successfully, but these errors were encountered: