Created
November 5, 2024 19:25
-
-
Save Hasstrup/24aa778f6ebfdc2b409cba57e359d051 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Users::RegistrationInput < BaseInput | |
REQUIRED_KEYS = %i[email password].freeze | |
attributes(*REQUIRED_KEYS, :first_name, :last_name) | |
def validate! | |
validate_required_keys! | |
end | |
end | |
############ | |
class Users::AuthenticationInput < BaseInput | |
REQUIRED_KEYS = %i[email password].freeze | |
attributes(*REQUIRED_KEYS) | |
def validate! | |
validate_required_keys! | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment