Skip to content

fix(datasource): support non-string fields in JSON data#50

Merged
rnovatorov merged 2 commits into
mainfrom
fix/datasource-initialization
Apr 28, 2026
Merged

fix(datasource): support non-string fields in JSON data#50
rnovatorov merged 2 commits into
mainfrom
fix/datasource-initialization

Conversation

@rnovatorov
Copy link
Copy Markdown
Member

Refactor 'dataSourceInstance' initialization to use a structured struct for JSON unmarshaling instead of a map[string]string. This prevents errors when the JSON data contains non-string types (e.g., booleans like 'tlsSkipVerify' added by Grafana's default UI), which previously caused unmarshaling to fail.

Refactor 'dataSourceInstance' initialization to use a structured struct
for JSON unmarshaling instead of a map[string]string. This prevents
errors when the JSON data contains non-string types (e.g., booleans like
'tlsSkipVerify' added by Grafana's default UI), which previously caused
unmarshaling to fail.
@rnovatorov rnovatorov merged commit 2050322 into main Apr 28, 2026
1 check passed
@rnovatorov rnovatorov deleted the fix/datasource-initialization branch April 28, 2026 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant