这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@danielgtaylor
Copy link
Owner

This fixes a small issue where the generated SSE oneOf schema array contained empty null entries, one for each real entry in the array. The fix is to set the initial length of the Go slice to zero.

Fixes #207.

@codecov
Copy link

codecov bot commented Jan 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e3530b2) 93.45% compared to head (4276c82) 93.45%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #211   +/-   ##
=======================================
  Coverage   93.45%   93.45%           
=======================================
  Files          17       17           
  Lines        2185     2185           
=======================================
  Hits         2042     2042           
  Misses        105      105           
  Partials       38       38           

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

@danielgtaylor danielgtaylor merged commit 85278c9 into main Jan 19, 2024
@danielgtaylor danielgtaylor deleted the fix-sse-one-of branch January 19, 2024 23:46
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.

OpenAPI spec generated for server sent events contains null which potentially doesn't follow the OpenAPI 3.1 spec

2 participants