go-openapi / strfmt

openapi toolkit common string formats
Apache License 2.0
102 stars 62 forks source link

url parsing fails if front slash before fragment is missing and no path specified #131

Open holger-waschke opened 6 months ago

holger-waschke commented 6 months ago

we send azure alerts to alertmanager. alertmanager parse the url

https://github.com/prometheus/alertmanager/blob/d7ad5e12f8f823ec64e4e84e91d926b6a8e60f71/cli/alert_add.go#L127C25-L127C28

https://portal.azure.com#@930d042f-8145....

This is covered in the RFC and should be supported https://www.rfc-editor.org/rfc/rfc3986#appendix-B

However we get an error while parsing the url

{"code":601,"message":"0.generatorURL in body must be of type uri: \"https://portal.azure.com#@930d042f-....""}

Can you please check why it fails and fix accordingly?