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 nullable fields #148

Merged
merged 2 commits into from
Aug 17, 2022

Conversation

bruceoutdoors
Copy link
Contributor

Change in #147 causes nullable JSON fields not to be exported.

This change should fix that.

@codecov
Copy link

codecov bot commented Aug 17, 2022

Codecov Report

Merging #148 (c5b2233) into master (a8f8fa6) will increase coverage by 0.23%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #148      +/-   ##
==========================================
+ Coverage   92.41%   92.64%   +0.23%     
==========================================
  Files          27       27              
  Lines        1688     1687       -1     
==========================================
+ Hits         1560     1563       +3     
+ Misses        128      124       -4     
Impacted Files Coverage Δ
src/Structure/ClassStructureTrait.php 95.89% <100.00%> (+5.34%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@vearutop
Copy link
Member

Could you rebase or merge latest master in your branch (this should fix CI)?

@bruceoutdoors
Copy link
Contributor Author

Ok done

@vearutop vearutop merged commit 2787d93 into swaggest:master Aug 17, 2022
@bruceoutdoors bruceoutdoors deleted the support_typed_properties_2 branch August 17, 2022 10:50
Copy link

@jpwijbenga jpwijbenga left a comment

Choose a reason for hiding this comment

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

This seems wrong. Line 110 is still there, right? $value is assigned once and overwritten directly after that.

@vearutop
Copy link
Member

I think you're right, though maybe the final behavior is somewhat similar (if not raising a notice). Removing line 110 seems reasonable.

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.

3 participants