Azure / Azure/typespec-azure

[azure-http-specs] Add test for empty open string union

Open
#4,571 0 comments 0 reactions 0 assignees View on GitHub
lib:azure-http-specs
Dominant language
TypeScript
Stars
27
Forks
90
Avg merge
1d 21h
Merged PRs (30d)
164

Description

From a recent AI spec:

```tsp
union Something { string; }
```

There are some scenarios where an empty open union could be introduced in a preview API, and later, known values would be added. We shoudl ensure that all emitters support this scenario.

Contributor guide

Open the contributing guide

Research direction

Locate the existing tests for Azure HTTP specs and the emitter coverage for open string unions; the issue does not name a file or test entry point. Run the relevant emitter test suite with `union Something { string; }` and verify that every emitter handles the empty open union before known values are added.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
testing, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.