huma icon indicating copy to clipboard operation
huma copied to clipboard

Defining Servers Causes 404 from OpenAPI Endpoint

Open derekssmith opened this issue 2 months ago • 1 comments

When I add servers to the OpenAPI configuration the docs page will not load because the openapi.json call returns a 404.

apiConfig := huma.DefaultConfig("My API V1", "1.0.0")
apiConfig.Info.Description = apiDescription

apiConfig.Servers = append(apiConfig.Servers, &huma.Server{
    URL:         "https://myapi.beta.mydomain.com/v1",
    Description: "Beta Server",
})

derekssmith avatar May 17 '24 12:05 derekssmith