You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today the samples in README.md assume credentials and subscriptionId are the two required parameters for any generated TS Client. It is true for most of the clients generated for Azure. However it is not true for generic TS generator and some dataplane clients like Azure Graph where the second parameter is tenantId and notsubscriptionId.
A proper way to do this would be to reflect on the parameters provided to the constructor. The goal is to generate a correct minimal sample. Hence we need to focus only on the required parameters provided to the constructor and use their names and types in proper order to instantiate the client.
Please take a look at this commit for the manual changes made to the graph sdk to get an idea about the problem.
The text was updated successfully, but these errors were encountered:
Today the samples in README.md assume credentials and subscriptionId are the two required parameters for any generated TS Client. It is true for most of the clients generated for Azure. However it is not true for generic TS generator and some dataplane clients like Azure Graph where the second parameter is
tenantId
and notsubscriptionId
.A proper way to do this would be to reflect on the parameters provided to the constructor. The goal is to generate a correct minimal sample. Hence we need to focus only on the required parameters provided to the constructor and use their names and types in proper order to instantiate the client.
Please take a look at this commit for the manual changes made to the graph sdk to get an idea about the problem.
The text was updated successfully, but these errors were encountered: