h1alexbel / fakehub

GitHub API Server Stub. Fully functional fake version of a GitHub API that supports all the features and works locally, with no connection to GitHub at all.
MIT License
5 stars 0 forks source link

how to generate open api clients #35

Closed h1alexbel closed 3 months ago

h1alexbel commented 4 months ago

first, install generator like that (npm required):

npm install @openapitools/openapi-generator-cli -g

then execute:

openapi-generator-cli generate -i api.yml -g rust -o .

now, you should have the following structure:

src/
  /apis
   mod.rs
   configuration.rs
   default_api.rs
  /models
    mod.rs
    foo.rs
  lib.rs
Cargo.toml
.openapi-generator-ignore
...
github-actions[bot] commented 4 months ago

@h1alexbel thanks for the report, here is a feedback:

Problems

  1. Missing expected behavior or error description
  2. Lack of environment details
  3. Lack of reproduction steps

I would recommend including a clear and concise description of the expected behavior or error in the bug report.

Please fix the bug report in order it to get resolved faster. Analyzed with Phind/Phind-CodeLlama-34B-v2

h1alexbel commented 4 months ago

@l3r8yJ take a look, we need to design in which directory we gonna place those generated structs and funcs

0pdd commented 3 months ago

@h1alexbel the puzzle #57 is still not solved.