danielgtaylor / huma

Huma REST/HTTP API Framework for Golang with OpenAPI 3.1
https://huma.rocks/
MIT License
2.34k stars 155 forks source link

Docs UI bug: mailto: with prefix `#/` #502

Open matrixik opened 4 months ago

matrixik commented 4 months ago

When setting contact:

    config.Info.Contact = &huma.Contact{
        Name:  "Example",
        Email: "hi@example.com",
    }

On docs page it will have following wrong href: #/mailto:hi@example.com

Browser then link to: http://127.0.0.1:8080/docs#/mailto:support@calculatedbody.com

danielgtaylor commented 4 months ago

Just like #503 I think this bug will need to be opened up with Stoplight Elements: https://github.com/stoplightio/elements. Once fixed there we can update the version used by Huma.