What is the correct way to download a file via the NSwag Code Generator (angular 2 typescript)

后端 未结 4 1776
盖世英雄少女心
盖世英雄少女心 2021-02-13 16:50

I try to download a file via an angular 2 typescript client. The link generated in Swagger UI works fine, but the generated typescript client does not.

The controller lo

4条回答
  •  温柔的废话
    2021-02-13 17:27

    The solution of @20B2 is working well, but instead of using

    () => new Schema
    

    You should use:

    () => new OpenApiSchema
    

提交回复
热议问题