Skip to content

Commit

Permalink
fix: empty array is valid api config (#2788)
Browse files Browse the repository at this point in the history
* fix: empty array is valid api config

* chore: revert weird api schema update

* Update api.go
  • Loading branch information
sweatybridge authored Oct 21, 2024
1 parent 2da3861 commit ce904a1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/config/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,7 @@ func (a *api) ToUpdatePostgrestConfigBody() v1API.UpdatePostgrestConfigBody {
}

// Convert ExtraSearchPath to a comma-separated string
if len(a.ExtraSearchPath) > 0 {
extraSearchPath := strings.Join(a.ExtraSearchPath, ",")
body.DbExtraSearchPath = &extraSearchPath
}
body.DbExtraSearchPath = cast.Ptr(strings.Join(a.ExtraSearchPath, ","))

// Convert MaxRows to int pointer
if a.MaxRows > 0 {
Expand Down

0 comments on commit ce904a1

Please sign in to comment.