Skip to content

Conversation

@Starosdev
Copy link
Owner

Summary

When notify.urls is configured as a JSON array in the config file, Viper's GetStringSlice may not parse it correctly. This fix attempts to unmarshal the raw string as JSON first, falling back to the original behavior if that fails.

Origin

Changes

  • Adds JSON unmarshal attempt for notify.urls configuration
  • Falls back to original GetStringSlice if JSON parsing fails
  • Enables users to configure notification URLs as JSON arrays

Test Plan

  • Verify notifications work with YAML list format
  • Verify notifications work with JSON array format
  • Verify notifications work with single URL string

@Starosdev Starosdev added this to the v1.1.0 - Bug Fixes milestone Nov 30, 2025
@Starosdev Starosdev added bug Something isn't working upstream-pr Upstream PR to merge labels Nov 30, 2025
@Starosdev Starosdev self-assigned this Nov 30, 2025
@Starosdev Starosdev added bug Something isn't working upstream-pr Upstream PR to merge labels Nov 30, 2025
When notify.urls is configured as a JSON array in the config file,
Viper's GetStringSlice may not parse it correctly. This fix attempts
to unmarshal the raw string as JSON first, falling back to the
original behavior if that fails.
@Starosdev Starosdev force-pushed the fix/upstream-pr-750-notify-url-unmarshal branch from e1ecc82 to 9109fb5 Compare November 30, 2025 06:42
@Starosdev Starosdev changed the title fix(notify): try to unmarshal notify.urls as JSON array (upstream PR #750) fix(notify): try to unmarshal notify.urls as JSON array Nov 30, 2025
@Starosdev Starosdev merged commit fc6738c into develop Dec 1, 2025
11 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working upstream-pr Upstream PR to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants