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

Fix code generator settings that are not of type string/bool #335

Merged

Conversation

david-brink-talogy
Copy link
Contributor

Fixes #334.

@christianhelle , I wasn't sure why only string/bool properties are mapped into NSwag. I added a new check to ensure property types are compatible in hope this may mitigate the problem you were trying to avoid.

@christianhelle christianhelle self-assigned this Mar 12, 2024
@christianhelle christianhelle added enhancement New feature, bug fix, or request .NET Pull requests that contain changes to .NET code labels Mar 12, 2024
Copy link

codecov bot commented Mar 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.35%. Comparing base (0cac175) to head (cb135f1).
Report is 13 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #335   +/-   ##
=======================================
  Coverage   97.34%   97.35%           
=======================================
  Files          63       63           
  Lines        2412     2421    +9     
=======================================
+ Hits         2348     2357    +9     
  Misses         40       40           
  Partials       24       24           
Flag Coverage Δ
unittests 97.35% <100.00%> (+<0.01%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Owner

@christianhelle christianhelle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

Thanks for taking the time to look into the problem and come up with a fix @david-brink-talogy

@christianhelle
Copy link
Owner

@all-contributors please add @david-brink-talogy for code

Copy link
Contributor

@christianhelle

I've put up a pull request to add @david-brink-talogy! 🎉

@christianhelle christianhelle merged commit afc4520 into christianhelle:main Mar 12, 2024
840 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature, bug fix, or request .NET Pull requests that contain changes to .NET code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Non string/boolean CodeGeneratorSettings are not honored
2 participants