Open
Description
Bug Report Checklist
- Have you provided a full/minimal spec to reproduce the issue?
- Have you validated the input using an OpenAPI validator (example)?
- Have you tested with the latest master to confirm the issue still exists?
- Have you searched for related issues/PRs?
- What's the actual output vs expected output?
- [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
go build
produce an error
./api_default.go:113:6: localVarFile redeclared in this block
previous declaration at ./api_default.go:102:6
Here is the declaration of the variable:
openapi-generator version
docker pull openapitools/openapi-generator-cli:latest
OpenAPI declaration file content or url
openapi: 3.0.0
info:
title: api
version: 0.0.1
paths:
/media:
post:
requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
image:
type: string
format: binary
video:
type: string
format: binary
responses:
200:
description: Success
Steps to reproduce
docker run --rm -v "${PWD}:/local" openapitools/openapi-generator-cli generate -g go -o /local/out/go -i /local/openapi.yaml
Related issues/PRs
None
Suggest a fix
Change the variable name for every property that has a binary format.