This commit is contained in:
filifa 2025-04-06 22:14:30 -04:00
parent b3cbb2789b
commit 0147bef26f
68 changed files with 2991 additions and 3026 deletions

View File

@ -19,7 +19,6 @@ import (
"strings" "strings"
) )
// AnalyticsAPIService AnalyticsAPI service // AnalyticsAPIService AnalyticsAPI service
type AnalyticsAPIService service type AnalyticsAPIService service

View File

@ -18,7 +18,6 @@ import (
"net/url" "net/url"
) )
// AttendanceAPIService AttendanceAPI service // AttendanceAPIService AttendanceAPI service
type AttendanceAPIService service type AttendanceAPIService service

View File

@ -19,7 +19,6 @@ import (
"strings" "strings"
) )
// AwardsAPIService AwardsAPI service // AwardsAPIService AwardsAPI service
type AwardsAPIService service type AwardsAPIService service

View File

@ -19,7 +19,6 @@ import (
"strings" "strings"
) )
// BatTrackingAPIService BatTrackingAPI service // BatTrackingAPIService BatTrackingAPI service
type BatTrackingAPIService service type BatTrackingAPIService service

View File

@ -19,7 +19,6 @@ import (
"strings" "strings"
) )
// BiomechanicsAPIService BiomechanicsAPI service // BiomechanicsAPIService BiomechanicsAPI service
type BiomechanicsAPIService service type BiomechanicsAPIService service

View File

@ -18,7 +18,6 @@ import (
"net/url" "net/url"
) )
// BroadcastAPIService BroadcastAPI service // BroadcastAPIService BroadcastAPI service
type BroadcastAPIService service type BroadcastAPIService service

View File

@ -19,7 +19,6 @@ import (
"strings" "strings"
) )
// ConferenceAPIService ConferenceAPI service // ConferenceAPIService ConferenceAPI service
type ConferenceAPIService service type ConferenceAPIService service

View File

@ -19,7 +19,6 @@ import (
"strings" "strings"
) )
// DivisionAPIService DivisionAPI service // DivisionAPIService DivisionAPI service
type DivisionAPIService service type DivisionAPIService service

View File

@ -19,7 +19,6 @@ import (
"strings" "strings"
) )
// DraftAPIService DraftAPI service // DraftAPIService DraftAPI service
type DraftAPIService service type DraftAPIService service

View File

@ -19,7 +19,6 @@ import (
"strings" "strings"
) )
// GameAPIService GameAPI service // GameAPIService GameAPI service
type GameAPIService service type GameAPIService service

View File

@ -18,7 +18,6 @@ import (
"net/url" "net/url"
) )
// GamePaceAPIService GamePaceAPI service // GamePaceAPIService GamePaceAPI service
type GamePaceAPIService service type GamePaceAPIService service

View File

@ -19,7 +19,6 @@ import (
"strings" "strings"
) )
// HighLowAPIService HighLowAPI service // HighLowAPIService HighLowAPI service
type HighLowAPIService service type HighLowAPIService service

View File

@ -19,7 +19,6 @@ import (
"strings" "strings"
) )
// HomerunDerbyAPIService HomerunDerbyAPI service // HomerunDerbyAPIService HomerunDerbyAPI service
type HomerunDerbyAPIService service type HomerunDerbyAPIService service

View File

@ -19,7 +19,6 @@ import (
"strings" "strings"
) )
// JobAPIService JobAPI service // JobAPIService JobAPI service
type JobAPIService service type JobAPIService service

View File

@ -19,7 +19,6 @@ import (
"strings" "strings"
) )
// LeagueAPIService LeagueAPI service // LeagueAPIService LeagueAPI service
type LeagueAPIService service type LeagueAPIService service

View File

@ -18,7 +18,6 @@ import (
"net/url" "net/url"
) )
// MilestonesAPIService MilestonesAPI service // MilestonesAPIService MilestonesAPI service
type MilestonesAPIService service type MilestonesAPIService service

View File

@ -18,7 +18,6 @@ import (
"net/url" "net/url"
) )
// MiscAPIService MiscAPI service // MiscAPIService MiscAPI service
type MiscAPIService service type MiscAPIService service

View File

@ -19,7 +19,6 @@ import (
"strings" "strings"
) )
// PersonAPIService PersonAPI service // PersonAPIService PersonAPI service
type PersonAPIService service type PersonAPIService service

View File

@ -18,7 +18,6 @@ import (
"net/url" "net/url"
) )
// PredictionsAPIService PredictionsAPI service // PredictionsAPIService PredictionsAPI service
type PredictionsAPIService service type PredictionsAPIService service

View File

@ -18,7 +18,6 @@ import (
"net/url" "net/url"
) )
// ReviewsAPIService ReviewsAPI service // ReviewsAPIService ReviewsAPI service
type ReviewsAPIService service type ReviewsAPIService service

View File

@ -18,7 +18,6 @@ import (
"net/url" "net/url"
) )
// ScheduleAPIService ScheduleAPI service // ScheduleAPIService ScheduleAPI service
type ScheduleAPIService service type ScheduleAPIService service

View File

@ -19,7 +19,6 @@ import (
"strings" "strings"
) )
// SeasonAPIService SeasonAPI service // SeasonAPIService SeasonAPI service
type SeasonAPIService service type SeasonAPIService service

View File

@ -19,7 +19,6 @@ import (
"strings" "strings"
) )
// SkeletalAPIService SkeletalAPI service // SkeletalAPIService SkeletalAPI service
type SkeletalAPIService service type SkeletalAPIService service

View File

@ -19,7 +19,6 @@ import (
"strings" "strings"
) )
// SportsAPIService SportsAPI service // SportsAPIService SportsAPI service
type SportsAPIService service type SportsAPIService service

View File

@ -19,7 +19,6 @@ import (
"strings" "strings"
) )
// StandingsAPIService StandingsAPI service // StandingsAPIService StandingsAPI service
type StandingsAPIService service type StandingsAPIService service

View File

@ -18,7 +18,6 @@ import (
"net/url" "net/url"
) )
// StatsAPIService StatsAPI service // StatsAPIService StatsAPI service
type StatsAPIService service type StatsAPIService service

View File

@ -18,7 +18,6 @@ import (
"net/url" "net/url"
) )
// StreaksAPIService StreaksAPI service // StreaksAPIService StreaksAPI service
type StreaksAPIService service type StreaksAPIService service

View File

@ -19,7 +19,6 @@ import (
"strings" "strings"
) )
// TeamsAPIService TeamsAPI service // TeamsAPIService TeamsAPI service
type TeamsAPIService service type TeamsAPIService service

View File

@ -18,7 +18,6 @@ import (
"net/url" "net/url"
) )
// TransactionsAPIService TransactionsAPI service // TransactionsAPIService TransactionsAPI service
type TransactionsAPIService service type TransactionsAPIService service

View File

@ -18,7 +18,6 @@ import (
"net/url" "net/url"
) )
// UniformsAPIService UniformsAPI service // UniformsAPIService UniformsAPI service
type UniformsAPIService service type UniformsAPIService service

View File

@ -19,7 +19,6 @@ import (
"strings" "strings"
) )
// VenuesAPIService VenuesAPI service // VenuesAPIService VenuesAPI service
type VenuesAPIService service type VenuesAPIService service

View File

@ -19,7 +19,6 @@ import (
"strings" "strings"
) )
// WeatherAPIService WeatherAPI service // WeatherAPIService WeatherAPI service
type WeatherAPIService service type WeatherAPIService service

View File

@ -31,14 +31,13 @@ import (
"strings" "strings"
"time" "time"
"unicode/utf8" "unicode/utf8"
) )
var ( var (
JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`) JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`)
XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`) XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`)
queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`)
queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]")
) )
// APIClient manages communication with the Stats API Documentation API v2.0.0 // APIClient manages communication with the Stats API Documentation API v2.0.0
@ -218,7 +217,7 @@ func typeCheckParameter(obj interface{}, expected string, name string) error {
return nil return nil
} }
func parameterValueToString( obj interface{}, key string ) string { func parameterValueToString(obj interface{}, key string) string {
if reflect.TypeOf(obj).Kind() != reflect.Ptr { if reflect.TypeOf(obj).Kind() != reflect.Ptr {
if actualObj, ok := obj.(interface{ GetActualInstanceValue() interface{} }); ok { if actualObj, ok := obj.(interface{ GetActualInstanceValue() interface{} }); ok {
return fmt.Sprintf("%v", actualObj.GetActualInstanceValue()) return fmt.Sprintf("%v", actualObj.GetActualInstanceValue())
@ -226,11 +225,11 @@ func parameterValueToString( obj interface{}, key string ) string {
return fmt.Sprintf("%v", obj) return fmt.Sprintf("%v", obj)
} }
var param,ok = obj.(MappedNullable) var param, ok = obj.(MappedNullable)
if !ok { if !ok {
return "" return ""
} }
dataMap,err := param.ToMap() dataMap, err := param.ToMap()
if err != nil { if err != nil {
return "" return ""
} }
@ -250,8 +249,8 @@ func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix stri
value = "invalid" value = "invalid"
case reflect.Struct: case reflect.Struct:
if t,ok := obj.(MappedNullable); ok { if t, ok := obj.(MappedNullable); ok {
dataMap,err := t.ToMap() dataMap, err := t.ToMap()
if err != nil { if err != nil {
return return
} }
@ -269,7 +268,7 @@ func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix stri
return return
} }
var lenIndValue = indValue.Len() var lenIndValue = indValue.Len()
for i:=0;i<lenIndValue;i++ { for i := 0; i < lenIndValue; i++ {
var arrayValue = indValue.Index(i) var arrayValue = indValue.Index(i)
var keyPrefixForCollectionType = keyPrefix var keyPrefixForCollectionType = keyPrefix
if style == "deepObject" { if style == "deepObject" {
@ -286,7 +285,7 @@ func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix stri
} }
iter := indValue.MapRange() iter := indValue.MapRange()
for iter.Next() { for iter.Next() {
k,v := iter.Key(), iter.Value() k, v := iter.Key(), iter.Value()
parameterAddToHeaderOrQuery(headerOrQueryParams, fmt.Sprintf("%s[%s]", keyPrefix, k.String()), v.Interface(), style, collectionType) parameterAddToHeaderOrQuery(headerOrQueryParams, fmt.Sprintf("%s[%s]", keyPrefix, k.String()), v.Interface(), style, collectionType)
} }
return return
@ -317,7 +316,7 @@ func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix stri
switch valuesMap := headerOrQueryParams.(type) { switch valuesMap := headerOrQueryParams.(type) {
case url.Values: case url.Values:
if collectionType == "csv" && valuesMap.Get(keyPrefix) != "" { if collectionType == "csv" && valuesMap.Get(keyPrefix) != "" {
valuesMap.Set(keyPrefix, valuesMap.Get(keyPrefix) + "," + value) valuesMap.Set(keyPrefix, valuesMap.Get(keyPrefix)+","+value)
} else { } else {
valuesMap.Add(keyPrefix, value) valuesMap.Add(keyPrefix, value)
} }

View File

@ -94,8 +94,7 @@ func NewConfiguration() *Configuration {
Description: "No description provided", Description: "No description provided",
}, },
}, },
OperationServers: map[string]ServerConfigurations{ OperationServers: map[string]ServerConfigurations{},
},
} }
return cfg return cfg
} }

View File

@ -10,11 +10,11 @@ Testing AnalyticsAPIService
package api package api
import ( import (
openapiclient "//"
"context" "context"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"testing" "testing"
openapiclient "//"
) )
func Test_api_AnalyticsAPIService(t *testing.T) { func Test_api_AnalyticsAPIService(t *testing.T) {

View File

@ -10,11 +10,11 @@ Testing AttendanceAPIService
package api package api
import ( import (
openapiclient "//"
"context" "context"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"testing" "testing"
openapiclient "//"
) )
func Test_api_AttendanceAPIService(t *testing.T) { func Test_api_AttendanceAPIService(t *testing.T) {

View File

@ -10,11 +10,11 @@ Testing AwardsAPIService
package api package api
import ( import (
openapiclient "//"
"context" "context"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"testing" "testing"
openapiclient "//"
) )
func Test_api_AwardsAPIService(t *testing.T) { func Test_api_AwardsAPIService(t *testing.T) {

View File

@ -10,11 +10,11 @@ Testing BatTrackingAPIService
package api package api
import ( import (
openapiclient "//"
"context" "context"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"testing" "testing"
openapiclient "//"
) )
func Test_api_BatTrackingAPIService(t *testing.T) { func Test_api_BatTrackingAPIService(t *testing.T) {

View File

@ -10,11 +10,11 @@ Testing BiomechanicsAPIService
package api package api
import ( import (
openapiclient "//"
"context" "context"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"testing" "testing"
openapiclient "//"
) )
func Test_api_BiomechanicsAPIService(t *testing.T) { func Test_api_BiomechanicsAPIService(t *testing.T) {

View File

@ -10,11 +10,11 @@ Testing BroadcastAPIService
package api package api
import ( import (
openapiclient "//"
"context" "context"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"testing" "testing"
openapiclient "//"
) )
func Test_api_BroadcastAPIService(t *testing.T) { func Test_api_BroadcastAPIService(t *testing.T) {

View File

@ -10,11 +10,11 @@ Testing ConferenceAPIService
package api package api
import ( import (
openapiclient "//"
"context" "context"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"testing" "testing"
openapiclient "//"
) )
func Test_api_ConferenceAPIService(t *testing.T) { func Test_api_ConferenceAPIService(t *testing.T) {

View File

@ -10,11 +10,11 @@ Testing DivisionAPIService
package api package api
import ( import (
openapiclient "//"
"context" "context"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"testing" "testing"
openapiclient "//"
) )
func Test_api_DivisionAPIService(t *testing.T) { func Test_api_DivisionAPIService(t *testing.T) {

View File

@ -10,11 +10,11 @@ Testing DraftAPIService
package api package api
import ( import (
openapiclient "//"
"context" "context"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"testing" "testing"
openapiclient "//"
) )
func Test_api_DraftAPIService(t *testing.T) { func Test_api_DraftAPIService(t *testing.T) {

View File

@ -10,11 +10,11 @@ Testing GamePaceAPIService
package api package api
import ( import (
openapiclient "//"
"context" "context"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"testing" "testing"
openapiclient "//"
) )
func Test_api_GamePaceAPIService(t *testing.T) { func Test_api_GamePaceAPIService(t *testing.T) {

View File

@ -10,11 +10,11 @@ Testing GameAPIService
package api package api
import ( import (
openapiclient "//"
"context" "context"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"testing" "testing"
openapiclient "//"
) )
func Test_api_GameAPIService(t *testing.T) { func Test_api_GameAPIService(t *testing.T) {

View File

@ -10,11 +10,11 @@ Testing HighLowAPIService
package api package api
import ( import (
openapiclient "//"
"context" "context"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"testing" "testing"
openapiclient "//"
) )
func Test_api_HighLowAPIService(t *testing.T) { func Test_api_HighLowAPIService(t *testing.T) {

View File

@ -10,11 +10,11 @@ Testing HomerunDerbyAPIService
package api package api
import ( import (
openapiclient "//"
"context" "context"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"testing" "testing"
openapiclient "//"
) )
func Test_api_HomerunDerbyAPIService(t *testing.T) { func Test_api_HomerunDerbyAPIService(t *testing.T) {

View File

@ -10,11 +10,11 @@ Testing JobAPIService
package api package api
import ( import (
openapiclient "//"
"context" "context"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"testing" "testing"
openapiclient "//"
) )
func Test_api_JobAPIService(t *testing.T) { func Test_api_JobAPIService(t *testing.T) {

View File

@ -10,11 +10,11 @@ Testing LeagueAPIService
package api package api
import ( import (
openapiclient "//"
"context" "context"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"testing" "testing"
openapiclient "//"
) )
func Test_api_LeagueAPIService(t *testing.T) { func Test_api_LeagueAPIService(t *testing.T) {

View File

@ -10,11 +10,11 @@ Testing MilestonesAPIService
package api package api
import ( import (
openapiclient "//"
"context" "context"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"testing" "testing"
openapiclient "//"
) )
func Test_api_MilestonesAPIService(t *testing.T) { func Test_api_MilestonesAPIService(t *testing.T) {

View File

@ -10,11 +10,11 @@ Testing MiscAPIService
package api package api
import ( import (
openapiclient "//"
"context" "context"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"testing" "testing"
openapiclient "//"
) )
func Test_api_MiscAPIService(t *testing.T) { func Test_api_MiscAPIService(t *testing.T) {

View File

@ -10,11 +10,11 @@ Testing PersonAPIService
package api package api
import ( import (
openapiclient "//"
"context" "context"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"testing" "testing"
openapiclient "//"
) )
func Test_api_PersonAPIService(t *testing.T) { func Test_api_PersonAPIService(t *testing.T) {

View File

@ -10,11 +10,11 @@ Testing PredictionsAPIService
package api package api
import ( import (
openapiclient "//"
"context" "context"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"testing" "testing"
openapiclient "//"
) )
func Test_api_PredictionsAPIService(t *testing.T) { func Test_api_PredictionsAPIService(t *testing.T) {

View File

@ -10,11 +10,11 @@ Testing ReviewsAPIService
package api package api
import ( import (
openapiclient "//"
"context" "context"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"testing" "testing"
openapiclient "//"
) )
func Test_api_ReviewsAPIService(t *testing.T) { func Test_api_ReviewsAPIService(t *testing.T) {

View File

@ -10,11 +10,11 @@ Testing ScheduleAPIService
package api package api
import ( import (
openapiclient "//"
"context" "context"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"testing" "testing"
openapiclient "//"
) )
func Test_api_ScheduleAPIService(t *testing.T) { func Test_api_ScheduleAPIService(t *testing.T) {

View File

@ -10,11 +10,11 @@ Testing SeasonAPIService
package api package api
import ( import (
openapiclient "//"
"context" "context"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"testing" "testing"
openapiclient "//"
) )
func Test_api_SeasonAPIService(t *testing.T) { func Test_api_SeasonAPIService(t *testing.T) {

View File

@ -10,11 +10,11 @@ Testing SkeletalAPIService
package api package api
import ( import (
openapiclient "//"
"context" "context"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"testing" "testing"
openapiclient "//"
) )
func Test_api_SkeletalAPIService(t *testing.T) { func Test_api_SkeletalAPIService(t *testing.T) {

View File

@ -10,11 +10,11 @@ Testing SportsAPIService
package api package api
import ( import (
openapiclient "//"
"context" "context"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"testing" "testing"
openapiclient "//"
) )
func Test_api_SportsAPIService(t *testing.T) { func Test_api_SportsAPIService(t *testing.T) {

View File

@ -10,11 +10,11 @@ Testing StandingsAPIService
package api package api
import ( import (
openapiclient "//"
"context" "context"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"testing" "testing"
openapiclient "//"
) )
func Test_api_StandingsAPIService(t *testing.T) { func Test_api_StandingsAPIService(t *testing.T) {

View File

@ -10,11 +10,11 @@ Testing StatsAPIService
package api package api
import ( import (
openapiclient "//"
"context" "context"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"testing" "testing"
openapiclient "//"
) )
func Test_api_StatsAPIService(t *testing.T) { func Test_api_StatsAPIService(t *testing.T) {

View File

@ -10,11 +10,11 @@ Testing StreaksAPIService
package api package api
import ( import (
openapiclient "//"
"context" "context"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"testing" "testing"
openapiclient "//"
) )
func Test_api_StreaksAPIService(t *testing.T) { func Test_api_StreaksAPIService(t *testing.T) {

View File

@ -10,11 +10,11 @@ Testing TeamsAPIService
package api package api
import ( import (
openapiclient "//"
"context" "context"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"testing" "testing"
openapiclient "//"
) )
func Test_api_TeamsAPIService(t *testing.T) { func Test_api_TeamsAPIService(t *testing.T) {

View File

@ -10,11 +10,11 @@ Testing TransactionsAPIService
package api package api
import ( import (
openapiclient "//"
"context" "context"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"testing" "testing"
openapiclient "//"
) )
func Test_api_TransactionsAPIService(t *testing.T) { func Test_api_TransactionsAPIService(t *testing.T) {

View File

@ -10,11 +10,11 @@ Testing UniformsAPIService
package api package api
import ( import (
openapiclient "//"
"context" "context"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"testing" "testing"
openapiclient "//"
) )
func Test_api_UniformsAPIService(t *testing.T) { func Test_api_UniformsAPIService(t *testing.T) {

View File

@ -10,11 +10,11 @@ Testing VenuesAPIService
package api package api
import ( import (
openapiclient "//"
"context" "context"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"testing" "testing"
openapiclient "//"
) )
func Test_api_VenuesAPIService(t *testing.T) { func Test_api_VenuesAPIService(t *testing.T) {

View File

@ -10,11 +10,11 @@ Testing WeatherAPIService
package api package api
import ( import (
openapiclient "//"
"context" "context"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"testing" "testing"
openapiclient "//"
) )
func Test_api_WeatherAPIService(t *testing.T) { func Test_api_WeatherAPIService(t *testing.T) {

View File

@ -35,8 +35,7 @@ var statsAPIConfiguration = &api.Configuration{
Description: "No description provided", Description: "No description provided",
}, },
}, },
OperationServers: map[string]api.ServerConfigurations{ OperationServers: map[string]api.ServerConfigurations{},
},
} }
var statsAPIClient = api.NewAPIClient(statsAPIConfiguration) var statsAPIClient = api.NewAPIClient(statsAPIConfiguration)