microsoft / microsoft/typespec

Update spector test to stop requiring dictionaries being sorted by key

Open
#7,687 0 comments 1 reaction 1 assignee Assigned to @Copilot View on GitHub
lib:http-specs
Dominant language
Java
Stars
5.9k
Forks
394
Avg merge
1d 23h
Merged PRs (30d)
104

Description

A question on https://github.com/microsoft/typespec/tree/main/packages/http-specs/specs/routes :
When passing dictionaries, Spector does not allow reverse order, it requires sorted. Is this intended? If not, can this get updated? In Rust, order is not guaranteed, so we have to emit code that sorts the dictionary before serializing it.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.