Skip to content

Commit

Permalink
chore: proper capitalization
Browse files Browse the repository at this point in the history
Co-authored-by: ccoVeille <[email protected]>
  • Loading branch information
dylanhitt and ccoVeille committed Jan 30, 2025
1 parent 8330a02 commit 078abd5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@ func WithOpenAPIConfig(config OpenAPIConfig) func(*Engine) {
e.OpenAPIConfig.DisableSwaggerUI = config.DisableSwaggerUI

if !validateSpecURL(e.OpenAPIConfig.SpecURL) {
slog.Error("Error serving openapi json spec. Value of 's.OpenAPIServerConfig.SpecURL' option is not valid", "url", e.OpenAPIConfig.SpecURL)
slog.Error("Error serving OpenAPI JSON spec. Value of 's.OpenAPIServerConfig.SpecURL' option is not valid", "url", e.OpenAPIConfig.SpecURL)
return
}
if !validateSwaggerURL(e.OpenAPIConfig.SwaggerURL) {
slog.Error("Error serving swagger ui. Value of 's.OpenAPIServerConfig.SwaggerURL' option is not valid", "url", e.OpenAPIConfig.SwaggerURL)
slog.Error("Error serving Swagger UI. Value of 's.OpenAPIServerConfig.SwaggerURL' option is not valid", "url", e.OpenAPIConfig.SwaggerURL)
return
}
}
Expand Down
6 changes: 3 additions & 3 deletions extra/fuegogin/adaptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ import (
)

type OpenAPIHandler struct {
*gin.Engine
GinEngine *gin.Engine
}

func (o *OpenAPIHandler) SpecHandler(e *fuego.Engine) {
Get(e, o, e.OpenAPIConfig.SpecURL, e.SpecHandler(), fuego.OptionHide())
Get(e, o.GinEngine, e.OpenAPIConfig.SpecURL, e.SpecHandler(), fuego.OptionHide())
}

func (o *OpenAPIHandler) UIHandler(e *fuego.Engine) {
GetGin(
e,
o,
o.GinEngine,
e.OpenAPIConfig.SwaggerURL+"/",
gin.WrapH(e.OpenAPIConfig.UIHandler(e.OpenAPIConfig.SpecURL)),
fuego.OptionHide(),
Expand Down

0 comments on commit 078abd5

Please sign in to comment.