Skip to content

Commit

Permalink
source host field type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PietroPasotti committed Dec 2, 2024
1 parent c08a906 commit d1eda4a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions interfaces/grafana_datasource/v0/schema.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from typing import Dict, Any

from pydantic import Json, BaseModel, Field

from interface_tester.schema_base import DataBagSchema
from pydantic import Json, BaseModel, Field


class GrafanaSourceData(BaseModel):
Expand All @@ -27,7 +26,10 @@ class GrafanaSourceProviderAppData(BaseModel):

class GrafanaSourceProviderUnitData(BaseModel):
"""Application databag model for the requirer side of this interface."""
grafana_source_host: Json[GrafanaSourceData]
grafana_source_host: str = Field(
description="Hostname of a source server.",
examples=['localhost:80']
)


class ProviderSchema(DataBagSchema):
Expand Down

0 comments on commit d1eda4a

Please sign in to comment.