Skip to content

Add Spector scenario for EncodeDuration where the duration could be satisfied by a larger unit #8728

@JoshLove-msft

Description

@JoshLove-msft

for encode seconds, have a test case where the duration is several minutes and document that languages that support duration primitives should use the largest possible unit, e.g. in C# TimeSpan.FromMinutes(2)

Similar test case needed for encode milliseconds.

We should add the new test cases for:

  • seconds, int32
  • seconds, float
  • milliseconds, int32,
  • milliseconds, float

across each of Header, Property, and Query.

Metadata

Metadata

Assignees

Labels

lib:http-specsFor issues/prs related to the @typespec/http-specs package

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions