safe-global / safe-client-gateway

Serves as a bridge for the Safe{Wallet} clients (Android, iOS, Web)
https://docs.safe.global
MIT License
27 stars 64 forks source link

Add validation for `SafeApp['socialProfiles'][number]['platform']` #2094

Closed iamacook closed 1 week ago

iamacook commented 1 week ago

Summary

We validate SafeApp['socialProfiles'][number]['platform'] as a string. However, they can only be DISCORD, GITHUB or TWITTER.

This adds the relevant validation for the above values, falling back to UNKNOWN if it does not match.

Changes