-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Closed
Labels
area-System.Text.JsonenhancementProduct code improvement that does NOT require public API changes/additionsProduct code improvement that does NOT require public API changes/additionsin-prThere is an active PR which will close this issue when it is mergedThere is an active PR which will close this issue when it is merged
Milestone
Description
Description
Currently (.NET 7 RC2) both DateTime and DateOnly are allowed as Dictionary keys, but not TimeOnly. This seems strange.
Reproduction Steps
Try returning Dictionary that has at least one item with TimeOnly as a key from an API action.
Expected behavior
Getting the serialized response
Actual behavior
Exception
Regression?
No
Known Workarounds
Creating custom convertor
Configuration
.NET 7 RC2
Other information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-System.Text.JsonenhancementProduct code improvement that does NOT require public API changes/additionsProduct code improvement that does NOT require public API changes/additionsin-prThere is an active PR which will close this issue when it is mergedThere is an active PR which will close this issue when it is merged


