Skip to content

Commit

Permalink
Enhance the validation of custom SMS provider
Browse files Browse the repository at this point in the history
  • Loading branch information
louischan-oursky committed Jan 16, 2025
1 parent 2ed0a45 commit d8a2b82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/lib/config/secret_custom_sms_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ var _ = SecretConfigSchema.Add("CustomSMSProviderConfig", `
"type": "object",
"additionalProperties": false,
"properties": {
"url": { "type": "string" },
"timeout": { "type": "integer" }
"url": { "type": "string", "format": "x_hook_uri" },
"timeout": { "type": "integer", "minimum": 1, "maximum": 60 }
},
"required": ["url"]
}
Expand Down

0 comments on commit d8a2b82

Please sign in to comment.