Skip to content

Comments

Return null on example, as it was with OpenApiNull before#3793

Merged
martincostello merged 3 commits intodomaindrivendev:masterfrom
jgarciadelanoceda:issue_3784_ReturnNullOnExample
Feb 18, 2026
Merged

Return null on example, as it was with OpenApiNull before#3793
martincostello merged 3 commits intodomaindrivendev:masterfrom
jgarciadelanoceda:issue_3784_ReturnNullOnExample

Conversation

@jgarciadelanoceda
Copy link
Contributor

@jgarciadelanoceda jgarciadelanoceda commented Feb 17, 2026

Ends fixing again #3784 .. I saw there was a thing a bit hidden on Microsoft.OpenApi that allows us to serialize the null as we were doing before with OpenApiNull

@codecov
Copy link

codecov bot commented Feb 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.93%. Comparing base (dc616c9) to head (1e8ddf8).
⚠️ Report is 4 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3793   +/-   ##
=======================================
  Coverage   94.93%   94.93%           
=======================================
  Files         111      111           
  Lines        3886     3886           
  Branches      784      784           
=======================================
  Hits         3689     3689           
  Misses        197      197           
Flag Coverage Δ
Linux 94.93% <100.00%> (ø)
Windows 94.93% <100.00%> (ø)
macOS 94.93% <100.00%> (ø)

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.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jgarciadelanoceda
Copy link
Contributor Author

@martincostello what are your thoughts about this one? I found it while answering the comment.. it's a bit nitch but in previous versions <10 Swashbuckle was serializing null in the example

@martincostello martincostello merged commit bf991e8 into domaindrivendev:master Feb 18, 2026
13 checks passed
@martincostello martincostello added this to the v10.1.4 milestone Feb 18, 2026
@jgarciadelanoceda jgarciadelanoceda deleted the issue_3784_ReturnNullOnExample branch February 18, 2026 10:34
This was referenced Feb 18, 2026
This was referenced Feb 19, 2026
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.

2 participants