Azure / typespec-azure

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

Report error if a property is not from request path #1271

Open ArthurMa1978 opened 1 month ago

ArthurMa1978 commented 1 month ago

In this example, the QuotaName property is currently defined from the request path. However, since the Quota model is only used as a response, this property should not be from the path.

In this case, the TSP compiler should report an error during compilation.