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
What are you generating using Kiota, clients or plugins?
API Client/SDK
In what context or format are you using Kiota?
Nuget tool
Client library/SDK language
TypeScript
Describe the bug
When I generate my typescript client with Kiota.Builder 1.14 (indirectly through FastEndpoints.ClientGen.Kiota), the resulting typescript files are missing the imports of UntypedNode and createUntypedNodeFromDiscriminatorValue from @microsoft/kiota-abstractions.
Here is an example of a file
/* tslint:disable *//* eslint-disable */// Generated by Microsoft Kiota// @ts-ignoreimport{createDomainExceptionResponseFromDiscriminatorValue,createGetWishlistResponseFromDiscriminatorValue,serializeAddToWishlistRequest,serializeDeleteFromWishlistRequest,typeAddToWishlistRequest,typeDeleteFromWishlistRequest,typeDomainExceptionResponse,typeGetWishlistResponse}from'../../../../models/';// @ts-ignoreimport{typeBaseRequestBuilder,typeParsable,typeParsableFactory,typeRequestConfiguration,typeRequestInformation,typeRequestsMetadata}from'@microsoft/kiota-abstractions';/** * Builds and executes requests for operations under /api/users/{userCodeOr-id}/wishlist */exportinterfaceWishlistRequestBuilderextendsBaseRequestBuilder<WishlistRequestBuilder>{/** * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<UntypedNode>} * @throws {DomainExceptionResponse} error when the service returns a 422 status code */delete(body: DeleteFromWishlistRequest,requestConfiguration?: RequestConfiguration<object>|undefined) : Promise<UntypedNode|undefined>;/** * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<GetWishlistResponse>} * @throws {DomainExceptionResponse} error when the service returns a 422 status code */get(requestConfiguration?: RequestConfiguration<object>|undefined) : Promise<GetWishlistResponse|undefined>;/** * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<UntypedNode>} * @throws {DomainExceptionResponse} error when the service returns a 422 status code */post(body: AddToWishlistRequest,requestConfiguration?: RequestConfiguration<object>|undefined) : Promise<UntypedNode|undefined>;/** * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */toDeleteRequestInformation(body: DeleteFromWishlistRequest,requestConfiguration?: RequestConfiguration<object>|undefined) : RequestInformation;/** * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */toGetRequestInformation(requestConfiguration?: RequestConfiguration<object>|undefined) : RequestInformation;/** * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */toPostRequestInformation(body: AddToWishlistRequest,requestConfiguration?: RequestConfiguration<object>|undefined) : RequestInformation;}/** * Uri template for the request builder. */exportconstWishlistRequestBuilderUriTemplate="{+baseurl}/api/users/{userCodeOr%2Did}/wishlist";/** * Metadata for all the requests in the request builder. */exportconstWishlistRequestBuilderRequestsMetadata: RequestsMetadata={delete: {uriTemplate: WishlistRequestBuilderUriTemplate,responseBodyContentType: "text/plain;q=0.9",errorMappings: {422: createDomainExceptionResponseFromDiscriminatorValueasParsableFactory<Parsable>,},adapterMethodName: "send",responseBodyFactory: createUntypedNodeFromDiscriminatorValue,requestBodyContentType: "application/json",requestBodySerializer: serializeDeleteFromWishlistRequest,requestInformationContentSetMethod: "setContentFromParsable",},get: {uriTemplate: WishlistRequestBuilderUriTemplate,responseBodyContentType: "application/json",errorMappings: {422: createDomainExceptionResponseFromDiscriminatorValueasParsableFactory<Parsable>,},adapterMethodName: "send",responseBodyFactory: createGetWishlistResponseFromDiscriminatorValue,},post: {uriTemplate: WishlistRequestBuilderUriTemplate,responseBodyContentType: "text/plain;q=0.9",errorMappings: {422: createDomainExceptionResponseFromDiscriminatorValueasParsableFactory<Parsable>,},adapterMethodName: "send",responseBodyFactory: createUntypedNodeFromDiscriminatorValue,requestBodyContentType: "application/json",requestBodySerializer: serializeAddToWishlistRequest,requestInformationContentSetMethod: "setContentFromParsable",},};/* tslint:enable *//* eslint-enable */
Expected behavior
The import should include UntypedNode and createUntypedNodeFromDiscriminatorValue
How to reproduce
Difficult to say which condition causes this
Open API description file
No response
Kiota Version
1.14
Latest Kiota version known to work for scenario above?(Not required)
No response
Known Workarounds
No response
Configuration
No response
Debug output
Click to expand log
```
</details>
### Other information
_No response_
The text was updated successfully, but these errors were encountered:
Hi @LaurentVandenbosch
Thank you for using kiota and for reaching out.
Can you try with version 1.15 and tell us if you are still seeing the issue please?
What are you generating using Kiota, clients or plugins?
API Client/SDK
In what context or format are you using Kiota?
Nuget tool
Client library/SDK language
TypeScript
Describe the bug
When I generate my typescript client with Kiota.Builder 1.14 (indirectly through FastEndpoints.ClientGen.Kiota), the resulting typescript files are missing the imports of UntypedNode and createUntypedNodeFromDiscriminatorValue from @microsoft/kiota-abstractions.
Here is an example of a file
Expected behavior
The import should include UntypedNode and createUntypedNodeFromDiscriminatorValue
How to reproduce
Difficult to say which condition causes this
Open API description file
No response
Kiota Version
1.14
Latest Kiota version known to work for scenario above?(Not required)
No response
Known Workarounds
No response
Configuration
No response
Debug output
Click to expand log
```The text was updated successfully, but these errors were encountered: