Add option to avoid nullability attributes from `JetBrains.Annotations` in generated C# models
- Dominant language
- C#
- Stars
- 417
- Forks
- 62
- Avg merge
- 9h 15m
- Merged PRs (30d)
- 7
Description
### Problem
Currently, the C# model files [are generated with nullability attributes](https://github.com/JetBrains/rd/blob/53f0fb543891bdfe7d2577883d44175d60043765/rd-kt/rd-gen/src/main/kotlin/com/jetbrains/rd/generator/nova/csharp/CSharp50Generator.kt#L182) from `JetBrains.Annotations` (e.g., `[NotNull]`, `[CanBeNull]`). This creates an unwanted dependency: projects using the generated code must also depend on `JetBrains.Annotations`, which is not desirable in some cases.
### Proposed Solution
Add a generator option to skip nullability attributes from `JetBrains.Annotations` and use the `#nullable` compiler directive instead.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.