api: remove IsAdmin from required attributes (#366)

This commit is contained in:
Christoph Haas
2025-02-17 07:40:24 +01:00
parent 5697c2b7f2
commit 43163273fa
6 changed files with 106 additions and 5 deletions

View File

@@ -17,7 +17,7 @@ type User struct {
// The name of the authentication provider. This field is read-only.
ProviderName string `json:"ProviderName,omitempty" readonly:"true" example:""`
// If this field is set, the user is an admin.
IsAdmin bool `json:"IsAdmin" binding:"required" example:"false"`
IsAdmin bool `json:"IsAdmin" example:"false"`
// The first name of the user. This field is optional.
Firstname string `json:"Firstname" example:"Max"`