-
Notifications
You must be signed in to change notification settings - Fork 199
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
Naming issue with GitHub specification #4833
Comments
After taking a look a look at this, the issue seems to be caused by the fact that the models namespace has two enums
|
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
Go
Describe the bug
(Please see reproduction steps below)
Kiota version: v1.15.0
Build error:
It's interesting that the errors are limited to this specific model and this specific file. In this case, the file name (CodeScanningVariantAnalysis) minus the extension, is appearing in the file in place of the type name (CodeScanningVariantAnalysisStatus) and a simple find/replace in that file will cause the build to succeed without errors.
Expected behavior
I expect
go build ./...
to succeed without any output.How to reproduce
Reproduction steps:
kiota generate -l go --ll trace -o $(pwd)/temp -n github.com/octokit/temp -d schemas/downloaded.json --ebc
cd temp
go mod init github.com/octokit/temp && go mod tidy
go build ./...
Open API description file
https://raw.githubusercontent.com/github/rest-api-description/main/descriptions/api.github.com/api.github.com.json
Kiota Version
v1.15.0
Latest Kiota version known to work for scenario above?(Not required)
v1.14.0
Known Workarounds
Configuration
This occurs on any x64-based Ubuntu-derivative system (e.g. GitHub Actions, though that is also my local dev environment). I do not know if it's specific to this configuration.
Debug output
N/A
Other information
N/A
The text was updated successfully, but these errors were encountered: