-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Investigate : Incomplete Path Parameters in TS #11
Comments
This API being under beta and this SDK being generated only for v1 I'd say this is expected? Unless the raptor process is generating a beta SDK on the fly? |
@baywet Had missed that, I'll investigate how the beta snippets were extracted when only v1 were specified in the E2E pipeline |
no worries, besides that aspect, the path item is in the beta OpenAPI description at the moment |
@baywet Another example generated from v1 Sample Link : https://docs.microsoft.com/en-us/graph/api/accessreviewinstance-batchrecorddecisions?view=graph-rest-beta&tabs=typescript
const authProvider = new AzureIdentityAuthenticationProvider(new ClientSecretCredential("tenantId", "clientId", "clientSecret"));
//THIS SNIPPET IS A PREVIEW FOR THE KIOTA BASED SDK. NON-PRODUCTION USE ONLY
const graphServiceClient = GraphServiceClient.init({authProvider});
const requestBody : BatchRecordDecisionsPostRequestBody = {
decision : "Approve",
justification : "All principals with access need continued access to the resource (Marketing Group) as all the principals are on the marketing team",
resourceId : "a5c51e59-3fcd-4a37-87a1-835c0c21488a",
};
async () => {
await graphServiceClient.me.pendingAccessReviewInstancesById("accessReviewInstance-id").batchRecordDecisions.post(requestBody);
} |
In this specific case "pendingAccessReviewInstances" is not present in the CSDL, all what's left are annotations trying to target it to say it's deprecated. I do think it's a separate issue from the one in the original post and should be looked into separately. |
@baywet Moved the second sample to a separate issue here microsoftgraph/msgraph-sdk-typescript#108 This current issue to be addressed in raptor |
Closing this issue as its resolved in version v1.0.0-preview.33 |
Path generation in TS SDK seems to be missing some request builder properties
Example : https://docs.microsoft.com/en-us/graph/api/ediscovery-legalhold-delete?view=graph-rest-beta&tabs=go
ediscovery
is missing in the RequestBuilderThe text was updated successfully, but these errors were encountered: