summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorEd Santiago <santiago@redhat.com>2020-02-19 09:35:35 -0700
committerEd Santiago <santiago@redhat.com>2020-02-19 16:21:11 -0700
commit1d8437d3ca7a1886f573477dfce66a2778d8176b (patch)
tree4217ab877f698ed28402e4fffcb3cedbaa69f27c /pkg
parente561280510e4ef5fc4100811a971d134b01c72a9 (diff)
downloadpodman-1d8437d3ca7a1886f573477dfce66a2778d8176b.tar.gz
podman-1d8437d3ca7a1886f573477dfce66a2778d8176b.tar.bz2
podman-1d8437d3ca7a1886f573477dfce66a2778d8176b.zip
Swagger: fix one incorrect comment
PR #5235 updated a bunch of entrypoints from {name} to {name:.*}, requiring matching changes to swagger comments. Looks like one got missed due to the manual nature of this work. Have I mentioned lately that manual maintenance of duplicate information is not a great idea? Discrepancy caught by my script, which I would really like to look into getting into CI, but is gating on #5238. (I would actually not like to get this script into CI, I would prefer to have the duplicate information be autogenerated from the function calls themselves, but I seem to have lost that battle) Signed-off-by: Ed Santiago <santiago@redhat.com>
Diffstat (limited to 'pkg')
-rw-r--r--pkg/api/server/register_images.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/api/server/register_images.go b/pkg/api/server/register_images.go
index 5b9ac7952..4c8f05385 100644
--- a/pkg/api/server/register_images.go
+++ b/pkg/api/server/register_images.go
@@ -822,7 +822,7 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error {
// 500:
// $ref: '#/responses/InternalError'
r.Handle(VersionedPath("/libpod/images/search"), s.APIHandler(handlers.SearchImages)).Methods(http.MethodGet)
- // swagger:operation DELETE /libpod/images/{name} libpod libpodRemoveImage
+ // swagger:operation DELETE /libpod/images/{name:.*} libpod libpodRemoveImage
// ---
// tags:
// - images
@@ -830,7 +830,7 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error {
// description: Delete an image from local store
// parameters:
// - in: path
- // name: name
+ // name: name:.*
// type: string
// required: true
// description: name or ID of image to delete