Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

rename URL to Url in json tags

p0ny9fd901ad89cf
diff --git a/api/activity.go b/api/activity.go
index 3d8df2f4eb..fd1a33f180 100644
--- a/api/activity.go
+++ b/api/activity.go
@@ -131,7 +131,7 @@ type ActivityPipelineTaskStatusUpdatePayload struct {
type ActivityPipelineTaskFileCommitPayload struct {
TaskID int `json:"taskId"`
- VCSInstanceURL string `json:"vcsInstanceURL,omitempty"`
+ VCSInstanceURL string `json:"vcsInstanceUrl,omitempty"`
RepositoryFullPath string `json:"repositoryFullPath,omitempty"`
Branch string `json:"branch,omitempty"`
FilePath string `json:"filePath,omitempty"`
diff --git a/api/backup.go b/api/backup.go
index 3a0ef81175..aff43606c4 100644
--- a/api/backup.go
+++ b/api/backup.go
@@ -163,7 +163,7 @@ type BackupSetting struct {
Hour int `jsonapi:"attr,hour"`
DayOfWeek int `jsonapi:"attr,dayOfWeek"`
// HookURL is the callback url to be requested (using HTTP GET) after a successful backup.
- HookURL string `jsonapi:"attr,hookURL"`
+ HookURL string `jsonapi:"attr,hookUrl"`
}
// BackupSettingFind is the message to get a backup settings.
@@ -192,7 +192,7 @@ type BackupSettingUpsert struct {
Enabled bool `jsonapi:"attr,enabled"`
Hour int `jsonapi:"attr,hour"`
DayOfWeek int `jsonapi:"attr,dayOfWeek"`
- HookURL string `jsonapi:"attr,hookURL"`
+ HookURL string `jsonapi:"attr,hookUrl"`
}
// BackupSettingsMatch is the message to find backup settings matching the conditions.
diff --git a/api/repository.go b/api/repository.go
index 6474dd4466..3e3de31c41 100644
--- a/api/repository.go
+++ b/api/repository.go
@@ -25,7 +25,7 @@ type Repository struct {
// Domain specific fields
Name string `jsonapi:"attr,name"`
FullPath string `jsonapi:"attr,fullPath"`
- WebURL string `jsonapi:"attr,webURL"`
+ WebURL string `jsonapi:"attr,webUrl"`
BranchFilter string `jsonapi:"attr,branchFilter"`
BaseDirectory string `jsonapi:"attr,baseDirectory"`
// The file path template for matching the commited migration script.
@@ -56,7 +56,7 @@ type RepositoryCreate struct {
// Domain specific fields
Name string `jsonapi:"attr,name"`
FullPath string `jsonapi:"attr,fullPath"`
- WebURL string `jsonapi:"attr,webURL"`
+ WebURL string `jsonapi:"attr,webUrl"`
BranchFilter string `jsonapi:"attr,branchFilter"`
BaseDirectory string `jsonapi:"attr,baseDirectory"`
FilePathTemplate string `jsonapi:"attr,filePathTemplate"`
diff --git a/api/vcs.go b/api/vcs.go
index 6816064cd4..ff053a5a34 100644
--- a/api/vcs.go
+++ b/api/vcs.go
@@ -21,8 +21,8 @@ type VCS struct {
// Domain specific fields
Name string `jsonapi:"attr,name"`
Type common.VCSType `jsonapi:"attr,type"`
- InstanceURL string `jsonapi:"attr,instanceURL"`
- ApiURL string `jsonapi:"attr,apiURL"`
+ InstanceURL string `jsonapi:"attr,instanceUrl"`
+ ApiURL string `jsonapi:"attr,apiUrl"`
ApplicationID string `jsonapi:"attr,applicationId"`
Secret string `jsonapi:"attr,secret"`
}
@@ -35,7 +35,7 @@ type VCSCreate struct {
// Domain specific fields
Name string `jsonapi:"attr,name"`
Type common.VCSType `jsonapi:"attr,type"`
- InstanceURL string `jsonapi:"attr,instanceURL"`
+ InstanceURL string `jsonapi:"attr,instanceUrl"`
// ApiURL derives from InstanceURL
ApiURL string
ApplicationID string `jsonapi:"attr,applicationId"`
diff --git a/common/vcs.go b/common/vcs.go
index 9c0c3ade8c..4c78d252a2 100644
--- a/common/vcs.go
+++ b/common/vcs.go
@@ -32,7 +32,7 @@ type VCSPushEvent struct {
BaseDirectory string `json:"baseDir"`
Ref string `json:"ref"`
RepositoryID string `json:"repositoryId"`
- RepositoryURL string `json:"repositoryURL"`
+ RepositoryURL string `json:"repositoryUrl"`
RepositoryFullPath string `json:"repositoryFullPath"`
AuthorName string `json:"authorName"`
FileCommit VCSFileCommit `json:"fileCommit"`