refactor: standardize API error handling (#1635)

This commit is contained in:
Elias Schneider
2026-08-02 23:36:06 +02:00
committed by GitHub
parent 281bea54d3
commit 7a4d0dd275
108 changed files with 3163 additions and 1629 deletions
@@ -8,6 +8,9 @@ import (
)
func TestValidateCallbackURLPattern(t *testing.T) {
// #nosec G101
const wildcardUserinfoPattern = "https://user:*@example.com/callback"
tests := []struct {
name string
pattern string
@@ -35,7 +38,7 @@ func TestValidateCallbackURLPattern(t *testing.T) {
},
{
name: "wildcard userinfo",
pattern: "https://user:*@example.com/callback", // #nosec G101 - Test credential
pattern: wildcardUserinfoPattern,
shouldError: false,
},
{