Skip to content

Commit fec9a27

Browse files
authored
chore: update alerting swagger spec
1 parent 1c14780 commit fec9a27

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/services/ngalert/api/tooling/spec.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8986,8 +8986,9 @@
89868986
}
89878987
},
89888988
"URL": {
8989+
"description": "The general form represented is:\n\n[scheme:][//[userinfo@]host][/]path[?query][#fragment]\n\nURLs that do not start with a slash after the scheme are interpreted as:\n\nscheme:opaque[?query][#fragment]\n\nThe Host field contains the host and port subcomponents of the URL.\nWhen the port is present, it is separated from the host with a colon.\nWhen the host is an IPv6 address, it must be enclosed in square brackets:\n\"[fe80::1]:80\". The [net.JoinHostPort] function combines a host and port\ninto a string suitable for the Host field, adding square brackets to\nthe host when necessary.\n\nNote that the Path field is stored in decoded form: /%47%6f%2f becomes /Go/.\nA consequence is that it is impossible to tell which slashes in the Path were\nslashes in the raw URL and which were %2f. This distinction is rarely important,\nbut when it is, the code should use the [URL.EscapedPath] method, which preserves\nthe original encoding of Path.\n\nThe RawPath field is an optional field which is only set when the default\nencoding of Path is different from the escaped path. See the EscapedPath method\nfor more details.\n\nURL's String method uses the EscapedPath method to obtain the path.",
89898990
"type": "object",
8990-
"title": "URL is a custom URL type that allows validation at configuration load time.",
8991+
"title": "A URL represents a parsed URL (technically, a URI reference).",
89918992
"properties": {
89928993
"ForceQuery": {
89938994
"type": "boolean"

0 commit comments

Comments
 (0)