mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-29 21:54:13 +01:00
c6bd7b2ec2
Signed-off-by: He Weiwei <hweiwei@vmware.com>
14 lines
247 B
JavaScript
14 lines
247 B
JavaScript
module.exports = parameters => {
|
|
for (const param of parameters) {
|
|
if (param.name === 'X-Request-Id' && param.in === 'header') {
|
|
return
|
|
}
|
|
}
|
|
|
|
return [
|
|
{
|
|
message: 'X-Request-Id must be in "parameters".',
|
|
},
|
|
];
|
|
};
|