1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/examples/vweb_orm_jwt/src/auth_dto.v
2022-07-24 13:02:57 +03:00

9 lines
360 B
V

module main
struct AuthRequestDto {
// Adding a [required] attribute will make decoding fail, if that field is not present in the input.
// If a field is not [required], but is missing, it will be assumed to have its default value, like 0 for numbers, or '' for strings, and decoding will not fail.
username string [required]
password string [required]
}