Skip to content

Commit

Permalink
Oups
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanfallet committed Dec 8, 2023
1 parent 4df10da commit af8d0bc
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@ package me.nathanfallet.extopy.models.auth

import kotlinx.datetime.LocalDate
import kotlinx.serialization.Serializable
import me.nathanfallet.extopy.models.users.User
import me.nathanfallet.usecases.models.annotations.validators.StringPropertyValidator

@Serializable
data class RegisterCodePayload(
val password: String,
@StringPropertyValidator(regex = User.USERNAME_REGEX, maxLength = 25)
val username: String,
@StringPropertyValidator(maxLength = 40)
val displayName: String,
val birthdate: LocalDate,
)

0 comments on commit af8d0bc

Please sign in to comment.