| 1 | module main |
| 2 | |
| 3 | struct AuthRequestDto { |
| 4 | // Adding a @[required] attribute will make decoding fail, if that field is not present in the input. |
| 5 | // 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. |
| 6 | username string @[required] |
| 7 | password string @[required] |
| 8 | } |
| 9 |