Azure / autorest.csharp

Extension for AutoRest (https://github.com/Azure/autorest) that generates C# code
MIT License
142 stars 166 forks source link

Additional properties C# user experience #4465

Closed ArcturusZhang closed 4 months ago

ArcturusZhang commented 5 months ago

How to define AdditionalProperties in TypeSpec

Phase 1

Make the additional properties with "verifiable primitive types" working correctly.

Phase 2

Make the additional properties with the union of "verifiable primitive types" working correctly.

Phase 3

Make the additional properties with models working correctly.

Phase 4

Make the additional properties with collections working correctly.

Phase 5

Make the complicated inheritance cases working correctly

### Tasks
- [ ] https://github.com/Azure/autorest.csharp/issues/4128
- [ ] Phase 2: fully support additional properties with union types of verifiable primitive types
- [ ] Phase 3: fully support additional properties with models
- [ ] Phase 4: fully support additional properties with collections
- [ ] https://github.com/Azure/autorest.csharp/issues/4467
lmazuel commented 4 months ago

Closing, see C# doc here for design: https://azure.github.io/typespec-azure/docs/howtos/DataPlane%20Generation%20-%20DPG/06types#models-with-additional-properties