koxudaxi / fastapi-code-generator

This code generator creates FastAPI app from an openapi file.
MIT License
1.08k stars 109 forks source link

Generate an empty model file if an api spec file have no "schemas". #375

Closed yyamano closed 1 year ago

yyamano commented 1 year ago

Fixed #222, Fixed #371

yyamano commented 1 year ago

Look like I need some modifications to make the change work with the latest master branch. Will take care of it.

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.26% :tada:

Comparison is base (e58ec86) 91.90% compared to head (30346b4) 92.16%. Report is 6 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #375 +/- ## ========================================== + Coverage 91.90% 92.16% +0.26% ========================================== Files 6 6 Lines 383 383 ========================================== + Hits 352 353 +1 + Misses 31 30 -1 ``` | Flag | Coverage Δ | | |---|---|---| | unittests | `92.16% <100.00%> (+0.26%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Koudai+Aono#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files Changed](https://app.codecov.io/gh/koxudaxi/fastapi-code-generator/pull/375?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Koudai+Aono) | Coverage Δ | | |---|---|---| | [fastapi\_code\_generator/parser.py](https://app.codecov.io/gh/koxudaxi/fastapi-code-generator/pull/375?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Koudai+Aono#diff-ZmFzdGFwaV9jb2RlX2dlbmVyYXRvci9wYXJzZXIucHk=) | `96.00% <ø> (ø)` | | | [fastapi\_code\_generator/\_\_main\_\_.py](https://app.codecov.io/gh/koxudaxi/fastapi-code-generator/pull/375?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Koudai+Aono#diff-ZmFzdGFwaV9jb2RlX2dlbmVyYXRvci9fX21haW5fXy5weQ==) | `84.61% <100.00%> (+0.69%)` | :arrow_up: |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.