microsoftgraph / msgraph-metadata

Microsoft Graph metadata captured and used for generating client library code files.
https://graph.microsoft.com
MIT License
107 stars 33 forks source link

Restore action generated for all types derived from directoryObject #698

Open MartinM85 opened 2 months ago

MartinM85 commented 2 months ago

Restore action should be available only on the /deletedItems path rather than derived types of directory object.

Now the restore action is generated for endpoints like

me/microsoft.graph.restore
contracts/{id}/microsoft.graph.restore
applications/{id}/microsoft.graph.restore
...

https://github.com/microsoftgraph/msgraph-metadata/blob/45c385e860332aaa85f1ef7f1b52b0ea44232b34/transforms/csdl/preprocess_csdl.xsl#L2424