mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-22 10:15:35 +01:00
API: update ScannerRegistration.properties.url format (#18799)
The format of ScannerRegistration.properties.url should be `uri` but not `url`. Fixes: #18798 Signed-off-by: bin liu <liubin0329@gmail.com> Co-authored-by: Wang Yan <wangyan@vmware.com>
This commit is contained in:
parent
1efe944a8d
commit
c8120d5712
@ -8182,7 +8182,7 @@ definitions:
|
||||
x-omitempty: false
|
||||
url:
|
||||
type: string
|
||||
format: url
|
||||
format: uri
|
||||
description: A base URL of the scanner adapter
|
||||
example: http://harbor-scanner-trivy:8080
|
||||
disabled:
|
||||
|
@ -38,7 +38,7 @@ func (s *ScannerRegistration) ToSwagger(ctx context.Context) *models.ScannerRegi
|
||||
return &models.ScannerRegistration{
|
||||
UUID: s.UUID,
|
||||
Name: s.Name,
|
||||
URL: s.URL,
|
||||
URL: strfmt.URI(s.URL),
|
||||
Description: s.Description,
|
||||
Auth: s.Auth,
|
||||
AccessCredential: s.AccessCredential,
|
||||
|
Loading…
Reference in New Issue
Block a user