MSGraph-SDK-Code-Generator
MSGraph-SDK-Code-Generator copied to clipboard
Support deprecation for C# on all request builders
IMethodRequest, *StreamRequest, *EntityWithReferenceRequeest, *EntityRequest, *EntityReferenceRequest, *EntityCollectionWithReferencesRequest, *EntityCollectionRequest, *EntityCollectionReferencesRequest, MethodRequestBody. AB#6862
We also need spec from @mikepizzo about how the deprecation statements should be propagated by tools.
A non-exhaustive list of questions and assumptions:
- Where can deprecation annotations exist in the CSDL?
- If derived type is deprecated and the base type is referenced, how do we handle references to the base type? Is it conditionally deprecated?
- If a property is deprecated on a complex type or entity, does that mean all references to the complex type or entity are deprecated?
- If a type is deprecated, all methods bound to the type, or that contains a parameter of that type, or that returns that type (or collections thereof) are deprecated.
- Base type deprecation - all derived types are deprecated as well as their bound methods, even if the derived type is not explicitly marked as deprecated.
This list could go on.... we need an OData spec on this.
closing since this has been addressed in kiota