Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Nov 6, 2024

Conversation

iamacook
Copy link
Member

@iamacook iamacook commented Nov 6, 2024

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

  • Add SafeAppSocialProfilePlatforms enum
  • Propagate enum to relevant types
  • Update tests accordingly

@iamacook iamacook self-assigned this Nov 6, 2024
@iamacook iamacook requested a review from a team as a code owner November 6, 2024 08:58
@PooyaRaki PooyaRaki self-requested a review November 6, 2024 09:18
@iamacook iamacook merged commit a1c7f31 into main Nov 6, 2024
20 checks passed
@iamacook iamacook deleted the safe-apps-social-profile-platform branch November 6, 2024 11:22
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.

2 participants