yonaskolb / SwagGen

OpenAPI/Swagger 3.0 Parser and Swift code generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Difference between generating a File and UploadFile

cerupcat opened this issue · comments

My spec looks like:

              "schema": {
                "type": "object",
                "properties": {
                  "Version": {
                    "type": "string"
                  },
                  "File": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              }

and a File object is used. How do we use an UploadFile object instead?

You can change use UploadFile by editing the template and configuring typeAliases

typeAliases:
    File: UploadFile