Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #7850
Closed
Open
Issue created Oct 31, 2020 by Administrator@rootContributor

Impossible to create Dart client with Github spec

Created by: chemaxa

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.

Assignee
Assign to
Time tracking