ogen-go / ogen

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

fix(gen): set Explode:false for multipart arrays #1323

Closed Liooo closed 1 month ago

Liooo commented 1 month ago

problem

solution

set Explode to false for multipart array

others

Liooo commented 1 month ago

this part might have been my misunderstanding, seems like ParseMultipartForm does render format 2.

though ogen generated code uses ParseMultipartForm() from standard http package before its own parsing logic, and seems like this one accepts the format 1. only

The solution may be just about supporting encoding field and allowing explode: false.