mirror of
https://github.com/containers/podman.git
synced 2025-05-23 01:57:56 +08:00
Update swagger-check
Signed-off-by: Tom Deseyn <tom.deseyn@gmail.com>
This commit is contained in:
@ -178,9 +178,10 @@ sub handle_handle {
|
|||||||
or die "$ME: $path:$.: Cannot grok '$line'\n";
|
or die "$ME: $path:$.: Cannot grok '$line'\n";
|
||||||
my $endpoint = $1;
|
my $endpoint = $1;
|
||||||
|
|
||||||
# FIXME: in older code, '{name:..*}' meant 'nameOrID'. As of 2020-02
|
# Some function declarations require an argument of the form '{name:.*}'
|
||||||
# it looks like most of the '{name:..*}' entries are gone, except for one.
|
# but the swagger (which gets derived from the comments) should not
|
||||||
###FIXME-obsolete? $endpoint =~ s|\{name:\.\.\*\}|{nameOrID}|;
|
# include them. Normalize all such args to just '{name}'.
|
||||||
|
$endpoint =~ s/\{name:\.\*\}/\{name\}/;
|
||||||
|
|
||||||
# e.g. /auth, /containers/*/rename, /distribution, /monitor, /plugins
|
# e.g. /auth, /containers/*/rename, /distribution, /monitor, /plugins
|
||||||
return 1 if $line =~ /\.UnsupportedHandler/;
|
return 1 if $line =~ /\.UnsupportedHandler/;
|
||||||
|
Reference in New Issue
Block a user