openapi-contrib / openapi3-generator

Use your API OpenAPI 3 definition to generate code, documentation, and literally anything you need.
Apache License 2.0
89 stars 27 forks source link

File upload spec generates invalid code #13

Closed schafdog closed 5 years ago

schafdog commented 5 years ago

I am trying to build a resource file upload service but it seems to generate invalid code, but maybe I am doing it wrong:

Given a post operation like this:

post:
  operationId: createResource
  summary: Create new resource
  description: create a remote resources
  requestBody:
    content:
      application/octet-stream:
        schema:
          type: string
          format: binary

The generated API gets a parameter of @RequestBody Resource body but the Delegate has a parameter of MultipartFile body

Am I doing something wrong? Anyone with a working example of File upload would appreciated .

schafdog commented 5 years ago

Sorry wrong project. Closing as invalid