huma
huma copied to clipboard
Defining Servers Causes 404 from OpenAPI Endpoint
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",
})