microsoft / typespec

https://typespec.io/
MIT License
4.32k stars 200 forks source link

Support replacing a member in custom code (Properties) #4266

Open m-nash opened 4 weeks ago

m-nash commented 4 weeks ago

Support https://github.com/Azure/autorest.csharp/blob/feature/v3/readme.md#replace-any-generated-member for properties.

ArcturusZhang commented 1 week ago

I believe this needs more discussion on how to do this, therefore I would like to drop this for a while to do something else with higher priority

JoshLove-msft commented 4 days ago

This would need to incorporate serialization of the custom property, i.e. if property Foo replaces Bar, the serialization code would need to look at Foo property but still use the WireFormat of the property. This may mean that we need to have the Canonical View for a TypeProvider.

ArcturusZhang commented 4 days ago

This would need to incorporate serialization of the custom property, i.e. if property Foo replaces Bar, the serialization code would need to look at Foo property but still use the WireFormat of the property. This may mean that we need to have the Canonical View for a TypeProvider.

yeah this is what i am thinking