小编Ale*_*x R的帖子

如何仅为发布版本显示依赖项更新

当我运行时versions:display-dependency-updates,它将显示我的依赖项的所有最新beta /里程碑版本.我更喜欢使用"发布"包.

versions:use-latest-releases谈论"替换"最新版本.但是,我更喜欢手动更新版本.

我可以运行版本插件给我一个关于我的依赖项和插件的最新"发布"版本的报告吗?

我指的是mvnrepository.org上列出的软件包的"类型"

maven

12
推荐指数
1
解决办法
2828
查看次数

如何指定 OpenAPI 以 angular 进行二进制下载

我有一种下载二进制文件的方法。目前在 openapi.yaml 中有以下规范:

  /processing/getZippedReports:
    post:
      tags:
      - ProcessingRest
      description: Get the reports
      operationId: getZippedReports
      requestBody:
        description: The list of items for which to get the HTML
        content:
          application/json:
            schema:
              type: array
              items:
                type: string
        required: true
      responses:
        200:
          description: file with zipped reports
          content:
            application/octet-stream: {}
Run Code Online (Sandbox Code Playgroud)

生成的 typescript-angular 代码包含对 httpClient 的调用:

return this.httpClient.post<any>(`${this.configuration.basePath}/processing/getZippedReports`,
    requestBody,
    {
        withCredentials: this.configuration.withCredentials,
        headers: headers,
        observe: observe,
        reportProgress: reportProgress
    }
);
Run Code Online (Sandbox Code Playgroud)

这样,angular 似乎无法接收二进制内容。我不得不更改 httpClient,使用 的非类型变量签名post并添加responseType: blob到参数

return this.httpClient.post(`${this.configuration.basePath}/processing/getZippedReports`,
    requestBody,
    {
        withCredentials: this.configuration.withCredentials, …
Run Code Online (Sandbox Code Playgroud)

swagger-codegen angular

3
推荐指数
1
解决办法
3481
查看次数

标签 统计

angular ×1

maven ×1

swagger-codegen ×1