Skip to content

Conversation

@artemseleznev
Copy link
Contributor

@artemseleznev artemseleznev commented Aug 21, 2025

The Svace static analyzer (https://www.ispras.ru/en/technologies/svace/) flagged this code as suspicious: it could lead to a panic (nil pointer dereference) because s.Schema might be nil.
I see a s.Schema != nil check on line 149, which suggests that a nil schema is a valid possible state that isn't fully handled here

@fredbi
Copy link
Member

fredbi commented Aug 21, 2025

We are no longer accepting pull request or issues posted by bots or some github scanner, which comes without any comment, or discussion of any sort. Please reformulate your pull request.

@fredbi fredbi closed this Aug 21, 2025
@fredbi fredbi reopened this Sep 2, 2025
Signed-off-by: Artem Seleznev <seleznyov.artyom@gmail.com>
@artemseleznev
Copy link
Contributor Author

@fredbi, thanks for your feedback. I've updated the description and signed off my commit

@codecov
Copy link

codecov bot commented Sep 5, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.47%. Comparing base (5806528) to head (e65a897).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@ Coverage Diff @@ ## master #208 +/- ## ========================================== + Coverage 91.42% 91.47% +0.05%  ========================================== Files 23 23 Lines 3952 3952 ========================================== + Hits 3613 3615 +2  + Misses 255 254 -1  + Partials 84 83 -1 
Flag Coverage Δ
oldstable-macos-latest 91.42% <100.00%> (ø)
oldstable-ubuntu-latest 91.42% <100.00%> (ø)
oldstable-windows-latest 91.42% <100.00%> (ø)
stable-macos-latest 91.42% <100.00%> (ø)
stable-ubuntu-latest 91.42% <100.00%> (ø)
stable-windows-latest 91.42% <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:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
@fredbi fredbi merged commit 320b3ad into go-openapi:master Sep 5, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants