containers/podman

ImageSearch and ImageSearchLibPod are specified incorrectly in swagger docs

已关闭

#23,741 创建于 2024年8月25日

 (3 条评论) (0 个反应) (0 位负责人)Go (3,107 个派生)batch import
ContribfestGood First Issuedocumentationkind/bugvolunteers-wanted

仓库指标

星标
 (31,686 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Issue Description

The docs suggest that the image search endpoints return an object like this:

{
  "Automated": "string",
  "Description": "string",
  "Index": "quay.io",
  "Name": "docker.io/library/alpine\"",
  "Official": "string",
  "Stars": 0,
  "Tag": "string"
}

But they actually return an array of such objects.

Steps to reproduce the issue

Query the endpoint and see an array rather than a single object.

Describe the results you received

I see incorrect docs online and an incorrect swagger yaml specification.

Describe the results you expected

I expected the docs to match the spec and describe an array of such objects.

I'm attempting to generate a client based on the spec and it fails to make these queries because of this spec issue.

podman info output

Deleted as not relevant

Podman in a container

No

Privileged Or Rootless

None

Upstream Latest Release

Yes

Additional environment details

Additional environment details

Additional information

Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting

贡献者指南