huma icon indicating copy to clipboard operation
huma copied to clipboard

Docs UI bug: when setting contact with both email and url then email is not linked anywhere

Open matrixik opened this issue 1 year ago • 1 comments

When setting contact:

config.Info.Contact = &huma.Contact{
	Name:  "Example",
	Email: "[email protected]",
	URL:	"https://example.com/contact",
}

then docs page only link to https://example.com/contact and email will not be linked (or even visible) anywhere.

matrixik avatar Jul 14 '24 06:07 matrixik

@matrixik this is handled by Stoplight Elements, which renders the documentation. You could try asking or opening an issue in https://github.com/stoplightio/elements. If that doesn't wind up working for you, check out https://huma.rocks/features/api-docs/#customizing-documentation to try out other documentation renderers you may find better for your use case.

danielgtaylor avatar Jul 26 '24 20:07 danielgtaylor