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
andrueastman
changed the title
Incorrect type name and factory method name generation in aliased scenario
[TS] Incorrect type name and factory method name generation in aliased scenario
Sep 12, 2024
What are you generating using Kiota, clients or plugins?
API Client/SDK
In what context or format are you using Kiota?
Source Build
Client library/SDK language
TypeScript
Describe the bug
Taking a look at the latest beta generation of the TS sdk at microsoftgraph/msgraph-beta-sdk-typescript#169
The build is failing to pass linting check.
The error points to code at
https://github.com/microsoftgraph/msgraph-beta-sdk-typescript/blob/2c4f2af6489b24580d961764fff3b8d60868ed3d/packages/msgraph-beta-sdk/models/networkaccess/index.ts#L2148
Expected behavior
At first glance, the issues look to be
getObjectValue
is incorrect. It should be a type. Instread its passing the alias of a function.CreateDeviceFromDiscriminatorValue
is incorrect. Instead it should be the aliased import.How to reproduce
Run kiota with the latest graph metadata
Open API description file
https://github.com/microsoftgraph/msgraph-metadata/blob/master/openapi/beta/openapi.yaml
Kiota Version
main
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: