Skip to content

Commit

Permalink
chore: loosen validation on host url of grafana-incident (keephq#3381)
Browse files Browse the repository at this point in the history
Co-authored-by: Tal <[email protected]>
  • Loading branch information
syphernl and talboren authored Feb 10, 2025
1 parent a19c482 commit 9a5c208
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
from keep.contextmanager.contextmanager import ContextManager
from keep.providers.base.base_provider import BaseProvider
from keep.providers.models.provider_config import ProviderConfig, ProviderScope
from keep.validation.fields import HttpsUrl


@pydantic.dataclasses.dataclass
Expand All @@ -21,12 +20,13 @@ class GrafanaIncidentProviderAuthConfig:
GrafanaIncidentProviderAuthConfig is a class that allows to authenticate in Grafana Incident.
"""

host_url: HttpsUrl = dataclasses.field(
host_url: pydantic.AnyHttpUrl = dataclasses.field(
metadata={
"required": True,
"description": "Grafana Host URL",
"hint": "e.g. https://keephq.grafana.net",
"sensitive": False,
"validation": "https_url",
"validation": "any_http_url",
},
)

Expand Down

0 comments on commit 9a5c208

Please sign in to comment.