ogen-go / ogen

OpenAPI v3 code generator for go
https://ogen.dev
Apache License 2.0
1.46k stars 86 forks source link

feat(gen): add size to MultipartFile struct #1247

Closed ldmonster closed 6 months ago

ldmonster commented 6 months ago

If we parse Multipart File, we have a size in parsing result. I think, we can send file size to user in multipart file struct, to use next.

Purpose: When i work with min.io, i'm stuck with storage my object, because it want's file size to use different store algorithms. So, i made this fix for myself.

Generators: OK Tests: OK

codecov[bot] commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 73.87%. Comparing base (dfdcdd7) to head (fc23362). Report is 1 commits behind head on main.

:exclamation: Current head fc23362 differs from pull request most recent head 06b65f9

Please upload reports for the commit 06b65f9 to get more accurate results.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1247 +/- ## ======================================= Coverage 73.87% 73.87% ======================================= Files 189 189 Lines 12772 12772 ======================================= Hits 9435 9435 Misses 2796 2796 Partials 541 541 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.