Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions isp/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@ model_make_clip_response.go
model_make_mp4_response.go
model_mp4_url_response.go
model_org_summary.go
model_patch_org_channel_request2.go
model_patch_org_channel_request2_ingest.go
model_patch_org_channel_request_inner.go
model_patch_org_channel_request.go
model_patch_org_channel_request2_inner.go
model_patch_org_channel_request_ingest.go
model_pin_source_request.go
model_play_url_response.go
model_post_clip_archive_request.go
Expand Down
8 changes: 4 additions & 4 deletions isp/api_channels_for_organization.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 2 additions & 14 deletions isp/convenience.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"net/http/httputil"
"net/url"
"reflect"
"time"

link "github.com/tent/http-link-go"
"golang.org/x/oauth2/clientcredentials"
Expand Down Expand Up @@ -246,17 +245,6 @@ func NewWithAuthHeader(header string) *HighLevelClient {

// TODO: remove this... for some reason it is missing in the generated output.
// At some point we need to switch to a less wonky code generator.
func parameterToString(v interface{}, _ string) string {
// Special-case time.Time and *time.Time to ensure RFC3339Nano formatting.
switch val := v.(type) {
case time.Time:
return val.UTC().Format(time.RFC3339Nano)
case *time.Time:
if val == nil {
return ""
}
return val.UTC().Format(time.RFC3339Nano)
default:
return fmt.Sprintf("%v", v)
}
func parameterToString(v interface{}, s string) string {
return fmt.Sprintf("%v", v)
}
Loading