diff options
author | Tom Deseyn <tom.deseyn@gmail.com> | 2021-04-07 15:23:13 +0200 |
---|---|---|
committer | Tom Deseyn <tom.deseyn@gmail.com> | 2021-04-07 15:26:24 +0200 |
commit | 4ceed6eb2f487899b19fade9cad01e5e8aaa7673 (patch) | |
tree | 8a9e8da6a623416ae44645d3c68ee53b4865dc7c /hack | |
parent | 71322d6c1fd4ebe81efeea5a0b8e1d11ef42aa29 (diff) | |
download | podman-4ceed6eb2f487899b19fade9cad01e5e8aaa7673.tar.gz podman-4ceed6eb2f487899b19fade9cad01e5e8aaa7673.tar.bz2 podman-4ceed6eb2f487899b19fade9cad01e5e8aaa7673.zip |
Update swagger-check
Signed-off-by: Tom Deseyn <tom.deseyn@gmail.com>
Diffstat (limited to 'hack')
-rwxr-xr-x | hack/swagger-check | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/hack/swagger-check b/hack/swagger-check index 646cbcb84..fc280c02d 100755 --- a/hack/swagger-check +++ b/hack/swagger-check @@ -178,9 +178,10 @@ sub handle_handle { or die "$ME: $path:$.: Cannot grok '$line'\n"; my $endpoint = $1; - # FIXME: in older code, '{name:..*}' meant 'nameOrID'. As of 2020-02 - # it looks like most of the '{name:..*}' entries are gone, except for one. -###FIXME-obsolete? $endpoint =~ s|\{name:\.\.\*\}|{nameOrID}|; + # Some function declarations require an argument of the form '{name:.*}' + # but the swagger (which gets derived from the comments) should not + # include them. Normalize all such args to just '{name}'. + $endpoint =~ s/\{name:\.\*\}/\{name\}/; # e.g. /auth, /containers/*/rename, /distribution, /monitor, /plugins return 1 if $line =~ /\.UnsupportedHandler/; |