oapi-codegen icon indicating copy to clipboard operation
oapi-codegen copied to clipboard

Slice type marshal error

Open mhsbz opened this issue 1 year ago • 0 comments

When generating client code defined through swagger 3.0, the runtime.MarshalForm method will marshal the values of type slice in the form structure into field_name[index], but the server cannot handle such fields(such as user_codes[0],user_codes[1]), It only supports the user_codes field

device_approve_bulk_requestBody:
   type: object
   properties:
     user_codes:
       type: array
       items:
         type: string

mhsbz avatar Apr 25 '24 10:04 mhsbz