Skip to content

Commit

Permalink
extra fields optional
Browse files Browse the repository at this point in the history
  • Loading branch information
PietroPasotti committed Dec 2, 2024
1 parent d1eda4a commit 530a527
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions interfaces/grafana_datasource/v0/schema.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Dict, Any
from typing import Dict, Any, Optional

from interface_tester.schema_base import DataBagSchema
from pydantic import Json, BaseModel, Field
Expand All @@ -13,9 +13,9 @@ class GrafanaSourceData(BaseModel):
examples=['tempo', 'loki', 'prometheus'])
type: str = Field(description="Type of the datasource.",
examples=['tempo', 'loki', 'prometheus'])
extra_fields: Json[Any] = Field(
extra_fields: Optional[Json[Any]] = Field(
description="Any datasource-type-specific additional configuration.")
secure_extra_fields: Json[Any] = Field(
secure_extra_fields: Optional[Json[Any]] = Field(
description="Any secure datasource-type-specific additional configuration.")


Expand Down

0 comments on commit 530a527

Please sign in to comment.