Skip to content

Commit

Permalink
add omitempty where missing and changie changes
Browse files Browse the repository at this point in the history
  • Loading branch information
chad-cwc committed Oct 11, 2023
1 parent b574bc2 commit 96230d1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .changes/unreleased/ENHANCEMENTS-20231011-122738.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: ENHANCEMENTS
body: 'targets/database: Add new field DatabaseAuthenticationConfig and deprecate
SplitCert and DatabaseType'
time: 2023-10-11T12:27:38.297052484-05:00
custom:
Issues: "40"
3 changes: 1 addition & 2 deletions .changes/unreleased/FEATURES-20231006-135721.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
kind: FEATURES
body: 'targets/database: Add new field DatabaseAuthenticationConfig and deprecate
SplitCert and DatabaseType'
body: 'targets/database: Add support for GET list of database authentication configs'
time: 2023-10-06T13:57:21.309141752-05:00
custom:
Issues: "40"
8 changes: 4 additions & 4 deletions bastionzero/service/targets/dbauthconfig/dbauthconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ package dbauthconfig
// /api/v2/targets/database/supported-database-configs and then one of the returned
// configurations is used in any subsequent create or update request as needed.
type DatabaseAuthenticationConfig struct {
AuthenticationType *string `json:"authenticationType"`
CloudServiceProvider *string `json:"cloudServiceProvider"`
Database *string `json:"database"`
Label *string `json:"label"`
AuthenticationType *string `json:"authenticationType,omitempty"`
CloudServiceProvider *string `json:"cloudServiceProvider,omitempty"`
Database *string `json:"database,omitempty"`
Label *string `json:"label,omitempty"`
}

0 comments on commit 96230d1

Please sign in to comment.