Azure / typespec-azure

About TypeSpec Azure Libraries
https://azure.github.io/typespec-azure/
MIT License
14 stars 40 forks source link

Partial resources in TypeSpec #1428

Open pshao25 opened 2 months ago

pshao25 commented 2 months ago

Definition of partial resource: Some operations might be operations of a resource from another RP, or some resources might have a parent resource from another RP. See example here.

It seems we don't have a way in TypeSpec to define such resource.

markcowl commented 1 month ago

What is the benefit of using a resource at all in this situation? Why would we not just use a low-level operation to define this API?