-
Notifications
You must be signed in to change notification settings - Fork 339
Open
Labels
Description
Describe the bug
mockapi in test https://github.com/microsoft/typespec/blob/main/packages/http-specs/specs/encode/duration/mockapi.ts
On test of duration as float, in query param and header param, it compares with e.g. 35625, which fails other same float value of 35625.0 etc.
Please fix these mockapi, to make it compare the float number (not its string representation).
Reproduction
run test with e.g. 35625.0 as input
Checklist
- Follow our Code of Conduct
- Check that there isn't already an issue that request the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion.
- The provided reproduction is a minimal reproducible example of the bug.
Reactions are currently unavailable