microsoft / microsoft/typespec

C# support for required properties

Open
#7,710 3 comments 3 reactions 0 assignees View on GitHub
emitter-framework feature triaged:core
Dominant language
Java
Stars
5.9k
Forks
394
Avg merge
1d 23h
Merged PRs (30d)
104

Description

I believe we should map required properties accordingly

```tsp
prop: string // => public required string Prop {get;set;}
prop?: string // => public string? Prop {get;set;}
prop: string | null // => public required string? Prop {get;set;}
```

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.