Skip to content
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

add custom variables support #247

Merged
merged 2 commits into from Oct 22, 2022

Conversation

sofianhnaide
Copy link
Contributor

This tool was a great starting point for us to generate different targets based on the OpenAPI definition. We found that with custom templates we were able to get 90% of the way there, but we need to add the support for custom variables.

This is a draft PR to see if this is a direction you want go, I still need to add/fix some tests and refine docs. The proposal should be simple and covered in the readme. Looking forward to hear your thoughts :)

@sofianhnaide
Copy link
Contributor Author

@koxudaxi just making sure this is on your radar.

@codecov
Copy link

codecov bot commented Oct 22, 2022

Codecov Report

Base: 92.43% // Head: 91.01% // Decreases project coverage by -1.42% ⚠️

Coverage data is based on head (039bc8c) compared to base (8ed2c21).
Patch coverage: 95.58% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #247      +/-   ##
==========================================
- Coverage   92.43%   91.01%   -1.43%     
==========================================
  Files           2        5       +3     
  Lines         291      345      +54     
==========================================
+ Hits          269      314      +45     
- Misses         22       31       +9     
Flag Coverage Δ
unittests 91.01% <95.58%> (-1.43%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
fastapi_code_generator/__main__.py 78.30% <89.65%> (-6.32%) ⬇️
fastapi_code_generator/visitor.py 100.00% <100.00%> (ø)
fastapi_code_generator/visitors/imports.py 100.00% <100.00%> (ø)
fastapi_code_generator/visitors/operations.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@koxudaxi koxudaxi merged commit 7c1cfc2 into koxudaxi:master Oct 22, 2022
@koxudaxi
Copy link
Owner

@sofianhnaide
I'm sorry for my very very late reply 🙇
I have released the PR as 0.3.6
Thank you very much.

@sofianhnaide
Copy link
Contributor Author

Thank you 🙏🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants