From 58dba906f4e64fbf657b57eb2420c62787c856f2 Mon Sep 17 00:00:00 2001 From: Matthieu 'JP' DERASSE Date: Mon, 1 Aug 2022 21:58:09 +0000 Subject: [PATCH] fix(typo): What's a APY ... --- helpers/api_types/api_type.go | 6 +++--- helpers/api_types/base/get_name.go | 2 +- helpers/api_types/gin_gonic/get_name.go | 2 +- helpers/api_types/go_swagger/get_name.go | 2 +- helpers/api_types/mojolicious/get_name.go | 2 +- helpers/models/api_type_name_enum.go | 22 +++++++++++----------- 6 files changed, 18 insertions(+), 18 deletions(-) diff --git a/helpers/api_types/api_type.go b/helpers/api_types/api_type.go index fcb4435..8cf29f6 100644 --- a/helpers/api_types/api_type.go +++ b/helpers/api_types/api_type.go @@ -19,11 +19,11 @@ func GetApiType(in models.ApiTypeName) (ApiTypeInterface, error) { } switch in { - case models.ApyTypeName_GIN_GONIC: + case models.ApiTypeName_GIN_GONIC: return gin_gonic.ApiType{}, nil - case models.ApyTypeName_GO_SWAGGER: + case models.ApiTypeName_GO_SWAGGER: return go_swagger.ApiType{}, nil - case models.ApyTypeName_MOJOLICIOUS: + case models.ApiTypeName_MOJOLICIOUS: return mojolicious.ApiType{}, nil } diff --git a/helpers/api_types/base/get_name.go b/helpers/api_types/base/get_name.go index d44983c..be2948e 100644 --- a/helpers/api_types/base/get_name.go +++ b/helpers/api_types/base/get_name.go @@ -5,5 +5,5 @@ import ( ) func (a ApiType) GetName() models.ApiTypeName { - return models.ApyTypeName_NULL + return models.ApiTypeName_NULL } diff --git a/helpers/api_types/gin_gonic/get_name.go b/helpers/api_types/gin_gonic/get_name.go index ca1eacf..79da30e 100644 --- a/helpers/api_types/gin_gonic/get_name.go +++ b/helpers/api_types/gin_gonic/get_name.go @@ -5,5 +5,5 @@ import ( ) func (a ApiType) GetName() models.ApiTypeName { - return models.ApyTypeName_GIN_GONIC + return models.ApiTypeName_GIN_GONIC } diff --git a/helpers/api_types/go_swagger/get_name.go b/helpers/api_types/go_swagger/get_name.go index 0960212..f9e5ac0 100644 --- a/helpers/api_types/go_swagger/get_name.go +++ b/helpers/api_types/go_swagger/get_name.go @@ -5,5 +5,5 @@ import ( ) func (a ApiType) GetName() models.ApiTypeName { - return models.ApyTypeName_GO_SWAGGER + return models.ApiTypeName_GO_SWAGGER } diff --git a/helpers/api_types/mojolicious/get_name.go b/helpers/api_types/mojolicious/get_name.go index 61a12a5..f534c4f 100644 --- a/helpers/api_types/mojolicious/get_name.go +++ b/helpers/api_types/mojolicious/get_name.go @@ -5,5 +5,5 @@ import ( ) func (a ApiType) GetName() models.ApiTypeName { - return models.ApyTypeName_MOJOLICIOUS + return models.ApiTypeName_MOJOLICIOUS } diff --git a/helpers/models/api_type_name_enum.go b/helpers/models/api_type_name_enum.go index c037a9d..eed390f 100644 --- a/helpers/models/api_type_name_enum.go +++ b/helpers/models/api_type_name_enum.go @@ -10,18 +10,18 @@ import ( type ApiTypeName string const ( - ApyTypeName_GIN_GONIC ApiTypeName = "Gin Gonic" - ApyTypeName_GO_SWAGGER ApiTypeName = "Go Swagger" - ApyTypeName_MOJOLICIOUS ApiTypeName = "Mojolicious" - ApyTypeName_NULL ApiTypeName = "" + ApiTypeName_GIN_GONIC ApiTypeName = "Gin Gonic" + ApiTypeName_GO_SWAGGER ApiTypeName = "Go Swagger" + ApiTypeName_MOJOLICIOUS ApiTypeName = "Mojolicious" + ApiTypeName_NULL ApiTypeName = "" ) // GetListOfApiTypeName returns a list of ApiTypeName func GetListOfApiTypeName() []ApiTypeName { return []ApiTypeName{ - ApyTypeName_GIN_GONIC, - ApyTypeName_GO_SWAGGER, - ApyTypeName_MOJOLICIOUS, + ApiTypeName_GIN_GONIC, + ApiTypeName_GO_SWAGGER, + ApiTypeName_MOJOLICIOUS, } } @@ -37,11 +37,11 @@ func (e ApiTypeName) IsValid() bool { } func NewApiTypeName(in string) (ApiTypeName, error) { - out := ApyTypeName_NULL + out := ApiTypeName_NULL if in != "" { out = ApiTypeName(in) if !out.IsValid() { - return ApyTypeName_NULL, errors.BadRequestf("Value %s invalid for enum ApiTypeName", in) + return ApiTypeName_NULL, errors.BadRequestf("Value %s invalid for enum ApiTypeName", in) } } return out, nil @@ -54,7 +54,7 @@ func NewApiTypeNameFromInput(in string) (ApiTypeName, error) { in = strings.ReplaceAll(in, " ", "-") in = strings.ReplaceAll(in, "_", "-") - out := ApyTypeName_NULL + out := ApiTypeName_NULL if in != "" { for _, apiTypeName := range GetListOfApiTypeName() { apiTypeStr := strings.ToLower(string(apiTypeName)) @@ -64,7 +64,7 @@ func NewApiTypeNameFromInput(in string) (ApiTypeName, error) { return apiTypeName, nil } } - return ApyTypeName_NULL, errors.BadRequestf("Value %s invalid for enum ApiTypeName", in) + return ApiTypeName_NULL, errors.BadRequestf("Value %s invalid for enum ApiTypeName", in) } return out, nil }