-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
Impossible to create Dart client with Github spec #7850
Comments
👍 Thanks for opening this issue! The team will review the labels and make any necessary changes. |
Can you specify the problems that occur? |
@chemaxa It would be great if you can run this again with 5.0.0 and describe the specific problems that you are having. |
They seem to use a lot of plain objects, that is an issue that is tracked here: #8179 |
@chemaxa I'm looking to convert https://github.com/SpinlockLabs/github.dart to be generated via the openapi spec if you'd like to help. discussion here SpinlockLabs/github.dart#245 |
The main problems I'm still getting are
|
Figuring this is mostly an issue with Github's spec so posting it here: using 5.3.0, generating a Rust project from the github OpenAPI spec
Also probably more specific to the rust generator: every field is associated with |
Description
Hi. I am tried to use OpenApitools and https://editor.swagger.io/ online generators for build dart github api client, but no one of them cant build working code.
openapi-generator version
5.0.0-beta2
OpenAPI declaration file content or url
https://github.com/github/rest-api-description/tree/main/descriptions/api.github.com
Command line used for generation
I tried using online generator on https://editor.swagger.io/,
just put URL on github json spec file and select DART in dropdown menu.
After that i also try to use openapi tools generator and download jar and used command from
https://github.com/OpenAPITools/openapi-generator/wiki/API-client-generator-HOWTO
java -jar .\openapi-generator-cli-5.0.0-beta2.jar generate -i .\openapi.json -g dart -o .\dart-client
Where openapi.json file i getting from https://github.com/github/rest-api-description/tree/main/descriptions/api.github.com
Steps to reproduce
Just try to build client from github swagger.json, and open code editor, after analyze is finished dart compiler will show all issues with generated code.
The text was updated successfully, but these errors were encountered: